> -----Original Message-----
> From: Ji, Kai <kai...@intel.com>
> Sent: Thursday, May 20, 2021 4:07 PM
> To: dev@dpdk.org
> Cc: Zhang, Roy Fan <roy.fan.zh...@intel.com>; Ji, Kai <kai...@intel.com>;
> De Lara Guarch, Pablo <pablo.de.lara.gua...@intel.com>
> Subject: [dpdk-dev v1] cperf: fix crypto perf out-of-place mempool alloc
> 
> Add in missing rte_mbuf size in mempool allocation for out-of-place op.
> 
> Fixes: bf9d6702eca9 ("app/crypto-perf: use single mempool")
> Cc: pablo.de.lara.gua...@intel.com
> 
> Signed-off-by: Kai Ji <kai...@intel.com>
> ---
>  app/test-crypto-perf/cperf_test_common.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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,
> --
> 2.17.1

Acked-by: Fan Zhang <roy.fan.zh...@intel.com>

Reply via email to