[PATCH v1] test/crypto: fix timeout in Rx inject

Vidya Sagar Velumuri vvelumuri at marvell.com
Tue Nov 21 07:49:51 CET 2023


Fix the timeout condition for rx in Rx inject.

Fixes: 69e1a909aa08 (test/crypto: add Rx inject)

Signed-off-by: Vidya Sagar Velumuri <vvelumuri at marvell.com>

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 96a3f36d73..58561ededf 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -10081,7 +10081,7 @@ test_ipsec_proto_mbuf_enq(struct crypto_testsuite_params *ts_params,
 	do {
 		/* Get packet from port 0, queue 0 */
 		ret = rte_eth_rx_burst(0, 0, &m, 1);
-	} while ((ret == 0) && (rte_get_tsc_cycles() > timeout));
+	} while ((ret == 0) && (rte_get_tsc_cycles() < timeout));
 
 	if (ret == 0) {
 		printf("Could not receive packets from ethdev\n");
-- 
2.25.1



More information about the dev mailing list