test/event_crypto: fix mempool name
authorHemant Agrawal <hemant.agrawal@nxp.com>
Fri, 27 Sep 2019 08:16:04 +0000 (13:46 +0530)
committerJerin Jacob <jerinj@marvell.com>
Sat, 5 Oct 2019 13:39:31 +0000 (15:39 +0200)
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@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
app/test/test_event_crypto_adapter.c

index ed8a58d..c7cdfe5 100644 (file)
@@ -541,7 +541,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,