From: Vidya Sagar Velumuri <vvelumuri@marvell.com>
To: Akhil Goyal <gakhil@marvell.com>, Fan Zhang <fanzhang.oss@gmail.com>
Cc: <jerinj@marvell.com>, <anoobj@marvell.com>,
<vvelumuri@marvell.com>, <asasidharan@marvell.com>,
<ktejasree@marvell.com>, <gmuthukrishn@marvell.com>,
<dev@dpdk.org>
Subject: [PATCH v1] test/crypto: fix timeout in Rx inject
Date: Mon, 20 Nov 2023 22:49:51 -0800 [thread overview]
Message-ID: <20231121064951.524446-1-vvelumuri@marvell.com> (raw)
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
next reply other threads:[~2023-11-21 6:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 6:49 Vidya Sagar Velumuri [this message]
2023-11-21 6:57 ` Anoob Joseph
2023-11-22 15:51 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231121064951.524446-1-vvelumuri@marvell.com \
--to=vvelumuri@marvell.com \
--cc=anoobj@marvell.com \
--cc=asasidharan@marvell.com \
--cc=dev@dpdk.org \
--cc=fanzhang.oss@gmail.com \
--cc=gakhil@marvell.com \
--cc=gmuthukrishn@marvell.com \
--cc=jerinj@marvell.com \
--cc=ktejasree@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).