From 0b1e11b0b69d7f36a7d283ae3e85bf63269530da Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Thu, 7 Nov 2019 14:31:20 +0530 Subject: [PATCH] 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 --- app/test/test_event_crypto_adapter.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.20.1