git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/cnxk: add cn10k template Rx functions to build
[dpdk.git]
/
app
/
test-crypto-perf
/
cperf_test_verify.c
diff --git
a/app/test-crypto-perf/cperf_test_verify.c
b/app/test-crypto-perf/cperf_test_verify.c
index
833bc9a
..
496eb0d
100644
(file)
--- a/
app/test-crypto-perf/cperf_test_verify.c
+++ b/
app/test-crypto-perf/cperf_test_verify.c
@@
-241,7
+241,7
@@
cperf_verify_test_runner(void *test_ctx)
uint64_t ops_deqd = 0, ops_deqd_total = 0, ops_deqd_failed = 0;
uint64_t ops_failed = 0;
uint64_t ops_deqd = 0, ops_deqd_total = 0, ops_deqd_failed = 0;
uint64_t ops_failed = 0;
- static
rte_atomic16_t display_once = RTE_ATOMIC16_INIT(0)
;
+ static
uint16_t display_once
;
uint64_t i;
uint16_t ops_unused = 0;
uint64_t i;
uint16_t ops_unused = 0;
@@
-299,7
+299,7
@@
cperf_verify_test_runner(void *test_ctx)
(ctx->populate_ops)(ops, ctx->src_buf_offset,
ctx->dst_buf_offset,
ops_needed, ctx->sess, ctx->options,
(ctx->populate_ops)(ops, ctx->src_buf_offset,
ctx->dst_buf_offset,
ops_needed, ctx->sess, ctx->options,
- ctx->test_vector, iv_offset, &imix_idx);
+ ctx->test_vector, iv_offset, &imix_idx
, NULL
);
/* Populate the mbuf with the test vector, for verification */
/* Populate the mbuf with the test vector, for verification */
@@
-383,8
+383,10
@@
cperf_verify_test_runner(void *test_ctx)
ops_deqd_total += ops_deqd;
}
ops_deqd_total += ops_deqd;
}
+ uint16_t exp = 0;
if (!ctx->options->csv) {
if (!ctx->options->csv) {
- if (rte_atomic16_test_and_set(&display_once))
+ if (__atomic_compare_exchange_n(&display_once, &exp, 1, 0,
+ __ATOMIC_RELAXED, __ATOMIC_RELAXED))
printf("%12s%12s%12s%12s%12s%12s%12s%12s\n\n",
"lcore id", "Buf Size", "Burst size",
"Enqueued", "Dequeued", "Failed Enq",
printf("%12s%12s%12s%12s%12s%12s%12s%12s\n\n",
"lcore id", "Buf Size", "Burst size",
"Enqueued", "Dequeued", "Failed Enq",
@@
-401,12
+403,13
@@
cperf_verify_test_runner(void *test_ctx)
ops_deqd_failed,
ops_failed);
} else {
ops_deqd_failed,
ops_failed);
} else {
- if (rte_atomic16_test_and_set(&display_once))
+ if (__atomic_compare_exchange_n(&display_once, &exp, 1, 0,
+ __ATOMIC_RELAXED, __ATOMIC_RELAXED))
printf("\n# lcore id, Buffer Size(B), "
"Burst Size,Enqueued,Dequeued,Failed Enq,"
"Failed Deq,Failed Ops\n");
printf("\n# lcore id, Buffer Size(B), "
"Burst Size,Enqueued,Dequeued,Failed Enq,"
"Failed Deq,Failed Ops\n");
- printf("%10u
;%10u;%u;%"PRIu64";%"PRIu64";%"PRIu64";%"PRIu64";
"
+ printf("%10u
,%10u,%u,%"PRIu64",%"PRIu64",%"PRIu64",%"PRIu64",
"
"%"PRIu64"\n",
ctx->lcore_id,
ctx->options->max_buffer_size,
"%"PRIu64"\n",
ctx->lcore_id,
ctx->options->max_buffer_size,