[dpdk-dev] [PATCH 4/6] test/event_crypto: support to release the atomic ctxt

Hemant Agrawal hemant.agrawal at nxp.com
Tue Oct 1 13:33:37 CEST 2019


The test cases uses ATOMIC queues. Once the packet is recived
it is required to release the ATOMIC ctxt, at least for the
HW based eventdevs. This patch makes empty dq call, which
in turn releases the atomic ctxt.

Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
 app/test/test_event_crypto_adapter.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c
index 8d42462d8..b9e3a439e 100644
--- a/app/test/test_event_crypto_adapter.c
+++ b/app/test/test_event_crypto_adapter.c
@@ -357,6 +357,12 @@ send_op_recv_ev(struct rte_crypto_op *op)
 		rte_pause();
 
 	recv_op = ev.event_ptr;
+
+	/* In case of Atomic/Ordered Queue, call dequeue one more time
+	 * to release, if there is any atomic context to be freed
+	 */
+	rte_event_dequeue_burst(evdev, TEST_APP_PORT_ID, &ev, NUM, 0);
+
 #if PKT_TRACE
 	struct rte_mbuf *m = recv_op->sym->m_src;
 	rte_pktmbuf_dump(stdout, m, rte_pktmbuf_pkt_len(m));
-- 
2.17.1



More information about the dev mailing list