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 73CBAA056A; Thu, 11 Mar 2021 06:53:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D5F7406A2; Thu, 11 Mar 2021 06:53:59 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 64C7040689 for ; Thu, 11 Mar 2021 06:53:58 +0100 (CET) IronPort-SDR: VZiOhE+H8Zr1Ib2/Xzy5c53hf/uuTbh4U6tLgGHFQchdpyk+c8g+HJg3LHge99Id24yTaeNoWE vJ1MYOd83Hig== X-IronPort-AV: E=McAfee;i="6000,8403,9919"; a="186238945" X-IronPort-AV: E=Sophos;i="5.81,239,1610438400"; d="scan'208";a="186238945" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2021 21:53:57 -0800 IronPort-SDR: NbPIPqhGJPUQnmPMwhcQWW8nSvaQsH2kpltD4vP0aLj4Ch6eg9bvu/EUgepr00Xl8XDm51nhPw NFwhPQW0hl0Q== X-IronPort-AV: E=Sophos;i="5.81,239,1610438400"; d="scan'208";a="403964373" Received: from unknown (HELO localhost.localdomain.localdomain) ([10.240.183.111]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2021 21:53:56 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Thu, 11 Mar 2021 13:50:46 +0800 Message-Id: <1615441846-10725-1-git-send-email-junx.w.zhou@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V2] 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" v1: modify dts for adapt DPDK bad UDP checksum change from PKT_RX_L4_CKSUM_BAD to PKT_RX_L4_CKSUM_UNKNOWN v2: add DPDK change UDP checksum version: 21.02 rc3 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