From patchwork Thu Aug 4 16:43:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 114599 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DCF7CA00C4; Thu, 4 Aug 2022 10:43:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B67A84068E; Thu, 4 Aug 2022 10:43:39 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 5600C4003F for ; Thu, 4 Aug 2022 10:43:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659602618; x=1691138618; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=JRAG46b7wD/39XyeHq1uWaS8kjeO4f2F/jT+l8x1+38=; b=S+JzFjcY0YXNV0jNM1Ug3nVV82SrKYcOKR03kSAhoQC9qKJvOT7bMFLT lZK+efT5RFu2Vsmm9BdAHKDr8zl1gXwO6Bnc8iYvUbCNDL7UXA2irbT0I NGCjXi1zoRiqJid/lYlFoHrjM9c6J2Jqy/+fx6VWhtlIcfQC6oxA5ceQM lwJSTWSNrFZaca9rczoao1KOuD3bGbpqZMpGdb6Mcoqft3i7fIhi1qspw +cSQnJKFfWcRewKTGGZ9U9fMFXox/uZjwrnxyIYdsJBixldg/uWuPY2mb pedaFB+Sd7FvBXkh59rb2R2NywkQmzRnDi8VHFIW40InWirmFlEySruL+ g==; X-IronPort-AV: E=McAfee;i="6400,9594,10428"; a="376179526" X-IronPort-AV: E=Sophos;i="5.93,215,1654585200"; d="scan'208";a="376179526" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2022 01:43:37 -0700 X-IronPort-AV: E=Sophos;i="5.93,215,1654585200"; d="scan'208";a="662446061" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2022 01:43:36 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/rxtx_offload: delete check times Date: Thu, 4 Aug 2022 16:43:56 +0000 Message-Id: <20220804164356.133220-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org optimize script, the number of TX packages can not reach the specified number within the specified times.therefore, delete the check times. Signed-off-by: Jiale Song --- tests/TestSuite_rxtx_offload.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py index c60bb68b..c3c9bde1 100644 --- a/tests/TestSuite_rxtx_offload.py +++ b/tests/TestSuite_rxtx_offload.py @@ -228,11 +228,11 @@ class TestRxTx_Offload(TestCase): ) i = i + 1 - def verify_packets_increasing(self, rxtx="tx", count=2): + def verify_packets_increasing(self, rxtx="tx"): # Verify RXTX-packets increasing on each ports, check count < 25 out1 = self.dut.send_expect("show port stats all", "testpmd> ") - i = 0 - while i < count: + i = 1 + while i: if rxtx == "tx": pks_l1 = re.findall(r"TX-packets: (\w+)", out1) time.sleep(15) @@ -241,8 +241,6 @@ class TestRxTx_Offload(TestCase): self.logger.info( "Times=" + str(i) - + ", count=" - + str(count) + ", pks2_cur=" + str(pks_l2) + ", pks1_before=" @@ -252,12 +250,10 @@ class TestRxTx_Offload(TestCase): self.verify( int(pks_l2[index]) > int(pks_l1[index]), "TX-packets hang" ) - if int(pks_l1[index]) < 100000000 or int(pks_l2[index]) < 100000000: - count += 1 - i += 1 - if count > 25: - self.verify(False, "Check count timeout") - break + if int(pks_l2[index]) < 100000000: + i += 1 + else: + break def get_queue_number(self, packet): """