From: Kai Ji Date: Mon, 24 May 2021 16:46:27 +0000 (+0100) Subject: app/crypto-perf: fix out-of-place mempool allocation X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c84e324e7ccb995b596c34a8a2c8a9c7cf51e3d2;p=dpdk.git app/crypto-perf: fix out-of-place mempool allocation Add missing rte_mbuf size in mempool allocation for out-of-place operation. Fixes: bf9d6702eca9 ("app/crypto-perf: use single mempool") Cc: stable@dpdk.org Signed-off-by: Kai Ji Acked-by: Fan Zhang Acked-by: Pablo de Lara --- diff --git a/app/test-crypto-perf/cperf_test_common.c b/app/test-crypto-perf/cperf_test_common.c index 058e0ba564..12925c7f22 100644 --- a/app/test-crypto-perf/cperf_test_common.c +++ b/app/test-crypto-perf/cperf_test_common.c @@ -194,7 +194,7 @@ cperf_alloc_common_memory(const struct cperf_options *options, (mbuf_size * segments_nb); params.dst_buf_offset = *dst_buf_offset; /* Destination buffer will be one segment only */ - obj_size += max_size; + obj_size += max_size + sizeof(struct rte_mbuf); } *pool = rte_mempool_create_empty(pool_name,