From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B0BA943389; Tue, 21 Nov 2023 07:50:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E6D040298; Tue, 21 Nov 2023 07:50:13 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 234574025F for ; Tue, 21 Nov 2023 07:50:12 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AL5dg4A004827; Mon, 20 Nov 2023 22:50:11 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=bp49dxtkzVH703CWd5jj+O0wggJ+yUzFUsAQrYHuS78=; b=T0BUrVB9dOcd5WpWjklq+wPTuIub7kVZwWOhQRENKJd250XgDNc4Tir3GxfzqMxp3BtK VtxKLJkVavgPav8rbfkk/cIBPzhuKMjuTcXRgpgzZmrzIrohjtGbAmIbUNCpOiI/Pcd3 noL0p/qsSr34eKVVc/jqWrBsVXSB2kOzZ6isLf0pvBXhXGXZ2i38rAMhMOrszo3asZgr Ff+PzrIw5dDry8N7ZQVVu0lGFD8L5ErqW87rENGVtUFL0YaXYU+zM+S95Ksm8jfZjQ6G j6RitnKaSDdE66izb/mbx/tMJHxwbrbzIaigUEOA+yaCBcEOmjjY0dV3nk2IcyGYT/gh Uw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uewnvyt0q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 20 Nov 2023 22:50:11 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 20 Nov 2023 22:50:08 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Mon, 20 Nov 2023 22:50:08 -0800 Received: from localhost.localdomain (unknown [10.28.36.179]) by maili.marvell.com (Postfix) with ESMTP id 189CC5B6928; Mon, 20 Nov 2023 22:50:04 -0800 (PST) From: Vidya Sagar Velumuri To: Akhil Goyal , Fan Zhang CC: , , , , , , Subject: [PATCH v1] test/crypto: fix timeout in Rx inject Date: Mon, 20 Nov 2023 22:49:51 -0800 Message-ID: <20231121064951.524446-1-vvelumuri@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: mVuJjHVAP9C9CiuoK7ylhSo_bNzwIfIF X-Proofpoint-ORIG-GUID: mVuJjHVAP9C9CiuoK7ylhSo_bNzwIfIF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-21_03,2023-11-20_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Fix the timeout condition for rx in Rx inject. Fixes: 69e1a909aa08 (test/crypto: add Rx inject) Signed-off-by: Vidya Sagar Velumuri 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