From: Hemant Agrawal Date: Thu, 7 Nov 2019 09:01:20 +0000 (+0530) Subject: test/event_crypto: fix to avail mempool entries X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0b1e11b0b69d7f36a7d283ae3e85bf63269530da;p=dpdk.git 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 Acked-by: Abhinandan Gujjar --- diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c index bf83a63577..6b47a5c012 100644 --- a/app/test/test_event_crypto_adapter.c +++ b/app/test/test_event_crypto_adapter.c @@ -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; }