Fix the timeout condition for rx in Rx inject.

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

Signed-off-by: Vidya Sagar Velumuri <vvelum...@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

Reply via email to