test/event_crypto: fix to avail mempool entries
Added the missed code to avail the mempool entries before pool free. 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>
This commit is contained in:
parent
18d934cb51
commit
0b1e11b0b6
@ -889,6 +889,7 @@ crypto_teardown(void)
|
||||
params.session_mpool = NULL;
|
||||
}
|
||||
if (params.session_priv_mpool != NULL) {
|
||||
rte_mempool_avail_count(params.session_priv_mpool);
|
||||
rte_mempool_free(params.session_priv_mpool);
|
||||
params.session_priv_mpool = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user