DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v1] test/crypto: fix timeout in Rx inject
@ 2023-11-21  6:49 Vidya Sagar Velumuri
  2023-11-21  6:57 ` Anoob Joseph
  0 siblings, 1 reply; 3+ messages in thread
From: Vidya Sagar Velumuri @ 2023-11-21  6:49 UTC (permalink / raw)
  To: Akhil Goyal, Fan Zhang
  Cc: jerinj, anoobj, vvelumuri, asasidharan, ktejasree, gmuthukrishn, dev

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>

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH v1] test/crypto: fix timeout in Rx inject
  2023-11-21  6:49 [PATCH v1] test/crypto: fix timeout in Rx inject Vidya Sagar Velumuri
@ 2023-11-21  6:57 ` Anoob Joseph
  2023-11-22 15:51   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Anoob Joseph @ 2023-11-21  6:57 UTC (permalink / raw)
  To: Vidya Sagar Velumuri, Akhil Goyal, Fan Zhang
  Cc: Jerin Jacob Kollanukkaran, Vidya Sagar Velumuri,
	Aakash Sasidharan, Tejasree Kondoj, Gowrishankar Muthukrishnan,
	dev

> 
> 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>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] test/crypto: fix timeout in Rx inject
  2023-11-21  6:57 ` Anoob Joseph
@ 2023-11-22 15:51   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2023-11-22 15:51 UTC (permalink / raw)
  To: Vidya Sagar Velumuri
  Cc: Akhil Goyal, Fan Zhang, dev, Jerin Jacob Kollanukkaran,
	Vidya Sagar Velumuri, Aakash Sasidharan, Tejasree Kondoj,
	Gowrishankar Muthukrishnan, Anoob Joseph

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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-22 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-21  6:49 [PATCH v1] test/crypto: fix timeout in Rx inject Vidya Sagar Velumuri
2023-11-21  6:57 ` Anoob Joseph
2023-11-22 15:51   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).