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
app/crypto-perf: return crypto ops to mempool in bulk
[dpdk.git]
/
app
/
test-crypto-perf
/
cperf_test_throughput.c
diff --git
a/app/test-crypto-perf/cperf_test_throughput.c
b/app/test-crypto-perf/cperf_test_throughput.c
index
61b27ea
..
b14808a
100644
(file)
--- a/
app/test-crypto-perf/cperf_test_throughput.c
+++ b/
app/test-crypto-perf/cperf_test_throughput.c
@@
-396,8
+396,8
@@
cperf_throughput_test_runner(void *test_ctx)
* the crypto operation will change the data and cause
* failures.
*/
* the crypto operation will change the data and cause
* failures.
*/
- for (i = 0; i < ops_deqd; i++)
-
rte_crypto_op_free(ops_processed[i]
);
+ rte_mempool_put_bulk(ctx->crypto_op_pool,
+
(void **)ops_processed, ops_deqd
);
ops_deqd_total += ops_deqd;
} else {
ops_deqd_total += ops_deqd;
} else {
@@
-426,8
+426,8
@@
cperf_throughput_test_runner(void *test_ctx)
if (ops_deqd == 0)
ops_deqd_failed++;
else {
if (ops_deqd == 0)
ops_deqd_failed++;
else {
- for (i = 0; i < ops_deqd; i++)
-
rte_crypto_op_free(ops_processed[i]
);
+ rte_mempool_put_bulk(ctx->crypto_op_pool,
+
(void **)ops_processed, ops_deqd
);
ops_deqd_total += ops_deqd;
}
ops_deqd_total += ops_deqd;
}