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

Message ID 20231121064951.524446-1-vvelumuri@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series [v1] test/crypto: fix timeout in Rx inject |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/github-robot: build success github build: passed
ci/intel-Functional success Functional PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-sample-apps-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-compile-arm64-testing success Testing PASS

Commit Message

Vidya Sagar Velumuri Nov. 21, 2023, 6:49 a.m. UTC
  Fix the timeout condition for rx in Rx inject.

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

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

Comments

Anoob Joseph Nov. 21, 2023, 6:57 a.m. UTC | #1
> 
> Fix the timeout condition for rx in Rx inject.
> 
> Fixes: 69e1a909aa08 (test/crypto: add Rx inject)
> 
> Signed-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>
> 

Acked-by: Anoob Joseph <anoobj@marvell.com>
  
Thomas Monjalon Nov. 22, 2023, 3:51 p.m. UTC | #2
21/11/2023 07:57, Anoob Joseph:
> > 
> > Fix the timeout condition for rx in Rx inject.
> > 
> > Fixes: 69e1a909aa08 (test/crypto: add Rx inject)
> > 
> > Signed-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>
> 
> Acked-by: Anoob Joseph <anoobj@marvell.com>

Applied, thanks.
  

Patch

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");