Skip to contentSkip to conversation

test/crypto: fix timeout in Rx inject

PATCH Applied Vidya Sagar Velumuri 3 participants 3 messages Nov 21, 2023 – Nov 22, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/crypto: fix timeout in Rx inject

Fix the timeout condition for rx in Rx inject.

Fixes 69e1a909aa08 (test/crypto: add Rx inject)
app/test/test_cryptodev.c +1 -1
index 96a3f36d73..58561ededf 100644
@@ -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");
Signature · 1 line
2.25.1