[dpdk-dev] [PATCH] test/event_crypto: fix mempool name

Gujjar, Abhinandan S abhinandan.gujjar at intel.com
Fri Sep 27 12:09:56 CEST 2019


Acked-by: abhinandan.gujjar at intel.com


> -----Original Message-----
> From: Hemant Agrawal <hemant.agrawal at nxp.com>
> Sent: Friday, September 27, 2019 1:46 PM
> To: dev at dpdk.org; Gujjar, Abhinandan S <abhinandan.gujjar at intel.com>
> Cc: stable at dpdk.org; Hemant Agrawal <hemant.agrawal at nxp.com>
> Subject: [PATCH] test/event_crypto: fix mempool name
> 
> The longer mempool name size is causing error in rte_mempool_create_empty
> for dpaa1
> 
> ret = snprintf(mz_name, sizeof(mz_name), RTE_MEMPOOL_MZ_FORMAT,
> name); This patch reduce the size of mempool name string
> 
> Fixes: 24054e3640a2 ("test/crypto: use separate session mempools")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
> ---
>  app/test/test_event_crypto_adapter.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/app/test/test_event_crypto_adapter.c
> b/app/test/test_event_crypto_adapter.c
> index 73655020d..cff7ad61f 100644
> --- a/app/test/test_event_crypto_adapter.c
> +++ b/app/test/test_event_crypto_adapter.c
> @@ -536,7 +536,7 @@ configure_cryptodev(void)
>  			"session mempool allocation failed\n");
> 
>  	params.session_priv_mpool = rte_mempool_create(
> -				"CRYPTO_ADAPTER_SESSION_MP_PRIV",
> +				"CRYPTO_AD_SESS_MP_PRIV",
>  				MAX_NB_SESSIONS,
>  				session_size,
>  				0, 0, NULL, NULL, NULL,
> --
> 2.17.1



More information about the dev mailing list