From f05511bc85c9648f8954ced8ab78ef3f327c003c Mon Sep 17 00:00:00 2001 From: Radu Nicolau Date: Mon, 16 Jul 2018 12:14:16 +0100 Subject: [PATCH] app/crypto-perf: fix mempool creation Using a small number of sessions results in rte_mempool_create call with cache_size > n, which fails. There is no need to cache the elements, as there is no performance impact. Fixes: 501c0a3b14c3 ("app/crypto-perf: limit number of sessions") Signed-off-by: Radu Nicolau Acked-by: Akhil Goyal --- app/test-crypto-perf/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 34873af2f4..5c7dadb605 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -21,7 +21,6 @@ #include "cperf_test_verify.h" #include "cperf_test_pmd_cyclecount.h" -#define SESS_MEMPOOL_CACHE_SIZE 64 const char *cperf_test_type_strs[] = { [CPERF_TEST_TYPE_THROUGHPUT] = "throughput", @@ -204,7 +203,7 @@ cperf_initialize_cryptodev(struct cperf_options *opts, uint8_t *enabled_cdevs, sess_mp = rte_mempool_create(mp_name, sessions_needed, max_sess_size, - SESS_MEMPOOL_CACHE_SIZE, + 0, 0, NULL, NULL, NULL, NULL, socket_id, 0); -- 2.20.1