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 4CA5EA0561; Thu, 4 Mar 2021 10:47:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2411E40684; Thu, 4 Mar 2021 10:47:01 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 73E4940147 for ; Thu, 4 Mar 2021 10:46:59 +0100 (CET) IronPort-SDR: EF5CEVci4c6HXpzXahV0hRoYCsTwO/8R3fiamMlXeI34SmbMJ7CEopTKg5VPLErYSvLvQp7faW xqHIvMRujOHg== X-IronPort-AV: E=McAfee;i="6000,8403,9912"; a="187492930" X-IronPort-AV: E=Sophos;i="5.81,222,1610438400"; d="scan'208";a="187492930" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2021 01:46:58 -0800 IronPort-SDR: 40SCE9SCubFBN0i8NndHRT2gvuA5G+BAchi75+Baa53fLdyPLSIOKAPy+ciKbAqM+GpADDFbGG IkSCWwOfsyHQ== X-IronPort-AV: E=Sophos;i="5.81,222,1610438400"; d="scan'208";a="407703422" Received: from unknown (HELO localhost.localdomain.localdomain) ([10.240.183.111]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2021 01:46:57 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Thu, 4 Mar 2021 17:44:01 +0800 Message-Id: <1614851041-16550-1-git-send-email-junx.w.zhou@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/checksum_offload & tests/rxtx_offload: adapt DPDK bad UDP checksum's change 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 Sender: "dts" DPDK bad UDP checksum change from PKT_RX_L4_CKSUM_BAD to PKT_RX_L4_CKSUM_UNKNOWN Signed-off-by: Zhou Jun --- tests/TestSuite_checksum_offload.py | 7 ++----- tests/TestSuite_rxtx_offload.py | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/tests/TestSuite_checksum_offload.py b/tests/TestSuite_checksum_offload.py index 37bb4ee..eee0910 100644 --- a/tests/TestSuite_checksum_offload.py +++ b/tests/TestSuite_checksum_offload.py @@ -193,10 +193,7 @@ class TestChecksumOffload(TestCase): if (flag == 1): self.verify("PKT_RX_L4_CKSUM_GOOD" in line, "Packet Rx L4 checksum valid-flags error!") elif (flag == 0): - if self.nic == "cavium_a063": - self.verify("PKT_RX_L4_CKSUM_BAD" in line or "PKT_RX_L4_CKSUM_UNKNOWN" in line, "Packet Rx L4 checksum valid-flags error!") - else: - self.verify("PKT_RX_L4_CKSUM_BAD" in line, "Packet Rx L4 checksum valid-flags error!") + self.verify("PKT_RX_L4_CKSUM_BAD" in line or "PKT_RX_L4_CKSUM_UNKNOWN" in line, "Packet Rx L4 checksum valid-flags error!") else: if "PKT_RX_L4_CKSUM" not in line: self.verify(0, "There is no L4 checksum flags appeared!") @@ -207,7 +204,7 @@ class TestChecksumOffload(TestCase): self.verify("PKT_RX_L4_CKSUM_GOOD" in line, "Packet Rx L4 checksum valid-flags error!") self.verify("PKT_RX_IP_CKSUM_GOOD" in line, "Packet Rx IP checksum valid-flags error!") elif (flag == 0): - self.verify("PKT_RX_L4_CKSUM_BAD" in line, "Packet Rx L4 checksum valid-flags error!") + self.verify("PKT_RX_L4_CKSUM_BAD" in line or "PKT_RX_L4_CKSUM_UNKNOWN" in line, "Packet Rx L4 checksum valid-flags error!") self.verify("PKT_RX_IP_CKSUM_BAD" in line, "Packet Rx IP checksum valid-flags error!") self.dut.send_expect("stop", "testpmd>") diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py index d0331dc..0e70526 100644 --- a/tests/TestSuite_rxtx_offload.py +++ b/tests/TestSuite_rxtx_offload.py @@ -271,10 +271,7 @@ class TestRxTx_Offload(TestCase): else: self.verify("PKT_RX_IP_CKSUM_GOOD" in line, "ipv4 checksum flag is wrong!") if ("udp" in flags) or ("tcp" in flags): - if self.nic in ['cavium_a063', 'cavium_a064']: - self.verify("PKT_RX_L4_CKSUM_BAD" or "PKT_RX_L4_CKSUM_UNKNOWN" in line, "L4 checksum flag is wrong!") - else: - self.verify("PKT_RX_L4_CKSUM_BAD" in line, "L4 checksum flag is wrong!") + self.verify("PKT_RX_L4_CKSUM_BAD" or "PKT_RX_L4_CKSUM_UNKNOWN" in line, "L4 checksum flag is wrong!") else: self.verify(("PKT_RX_L4_CKSUM_GOOD" in line) or ("PKT_RX_L4_CKSUM_UNKNOWN" in line), "L4 checksum flag is wrong!") # collect the tx checksum result -- 1.8.3.1