> diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c
> index fff5c0d59a..f9691fe281 100644
> --- a/app/test/test_cryptodev_asym.c
> +++ b/app/test/test_cryptodev_asym.c
> @@ -894,7 +894,7 @@ testsuite_setup(void)
>       }
> 
>       ts_params->session_mpool =
> rte_cryptodev_asym_session_pool_create(
> -                     "test_asym_sess_mp", TEST_NUM_SESSIONS * 2, 0,
> +                     "test_asym_sess_mp", TEST_NUM_SESSIONS * 2, 0, 0,
>                       SOCKET_ID_ANY);
> 

Multiply by 2 is not needed now.

> @@ -1803,7 +1805,7 @@ rte_cryptodev_sym_session_pool_create(const char
> *name, uint32_t nb_elts,
> 
>  struct rte_mempool *
>  rte_cryptodev_asym_session_pool_create(const char *name, uint32_t nb_elts,
> -     uint32_t cache_size, int socket_id)
> +     uint32_t cache_size, uint16_t user_data_size, int socket_id)
>  {
>       struct rte_mempool *mp;
>       struct rte_cryptodev_asym_session_pool_private_data *pool_priv;
> @@ -1821,7 +1823,8 @@ rte_cryptodev_asym_session_pool_create(const char
> *name, uint32_t nb_elts,
>               return NULL;
>       }
> 
> -     obj_sz = rte_cryptodev_asym_get_header_session_size() + max_priv_sz;
> +     obj_sz = rte_cryptodev_asym_get_header_session_size() + max_priv_sz
> +
> +                     user_data_size;

Extra line

>       obj_sz_aligned =  RTE_ALIGN_CEIL(obj_sz, RTE_CACHE_LINE_SIZE);
> 
>       mp = rte_mempool_create(name, nb_elts, obj_sz_aligned, cache_size,

Reply via email to