diff mbox series

[v2,2/3] test/event_crypto: fix to avail the mempool entries

Message ID 20191107090121.3246-2-hemant.agrawal@nxp.com
State Accepted
Commit 0b1e11b0b69d7f36a7d283ae3e85bf63269530da
Headers show
Series [v2,1/3] test/event_crypto: fix missing IV value for AES algo | expand

Commit Message

Hemant Agrawal Nov. 7, 2019, 9:01 a.m. UTC
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>

---
 app/test/test_event_crypto_adapter.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.17.1
diff mbox series

Patch

diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c
index bf83a6357..6b47a5c01 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;
 	}