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

Message ID 20191107090121.3246-2-hemant.agrawal@nxp.com
State Accepted, archived
Delegated to: Jerin Jacob
Headers show
Series
  • [v2,1/3] test/event_crypto: fix missing IV value for AES algo
Related show

Checks

Context Check Description
ci/Intel-compilation fail Compilation issues
ci/checkpatch success coding style OK

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(+)

Patch
diff mbox series

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;
 	}