From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2104CA0555; Wed, 19 Feb 2020 08:06:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1847A1BF7D; Wed, 19 Feb 2020 08:06:09 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 007791BF7D for ; Wed, 19 Feb 2020 08:06:07 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Feb 2020 23:06:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,459,1574150400"; d="scan'208";a="382713363" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.222]) by orsmga004.jf.intel.com with ESMTP; 18 Feb 2020 23:06:06 -0800 From: yufengmx To: dts@dpdk.org, lijuan.tu@intel.com, lihongx.ma@intel.com Cc: yufengmx Date: Wed, 19 Feb 2020 15:09:14 +0800 Message-Id: <20200219070914.25513-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200219070914.25513-1-yufengx.mo@intel.com> References: <20200219070914.25513-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/1] tests/uni_pkt: x722 support X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" x722 support. Signed-off-by: yufengmx --- tests/TestSuite_uni_pkt.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py index e32bc2c..fbca8df 100644 --- a/tests/TestSuite_uni_pkt.py +++ b/tests/TestSuite_uni_pkt.py @@ -121,11 +121,14 @@ class TestUniPacket(TestCase): else: raise VerifyFailure("Failed to detect L2 %s" % l2_type) + def test_IPv4_L4(self): """ checked that whether L3 and L4 packet can be normally detected. """ - if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic or "columbiaville" in self.nic: + if "fortville" in self.nic or "fortpark_TLV" in self.nic or \ + "carlsville" in self.nic or "columbiaville" in self.nic or \ + "x722" in self.nic: outerL4Type = "L4_NONFRAG" ipv4_default_packet_type = ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN"] elif "niantic" in self.nic.lower() or "powerville" in self.nic.lower() or "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinville" in self.nic.lower() or "sageville" in self.nic.lower() or "sagepond" in self.nic.lower() or "springville" in self.nic.lower(): @@ -143,7 +146,9 @@ class TestUniPacket(TestCase): } # delete the unsupported packet based on nic type - if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic or "columbiaville" in self.nic: + if "fortville" in self.nic or "fortpark_TLV" in self.nic or \ + "carlsville" in self.nic or "columbiaville" in self.nic or \ + "x722" in self.nic: pktType.pop("MAC_IPihl_PKT") pktType.pop("MAC_IPihl_SCTP_PKT") elif "niantic" in self.nic.lower() or "powerville" in self.nic.lower() or "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinville" in self.nic.lower() or "sageville" in self.nic.lower() or "sagepond" in self.nic.lower() or "springville" in self.nic.lower(): @@ -156,7 +161,9 @@ class TestUniPacket(TestCase): """ checked that whether IPv6 and L4 packet can be normally detected. """ - if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic or "columbiaville" in self.nic: + if "fortville" in self.nic or "fortpark_TLV" in self.nic or \ + "carlsville" in self.nic or "columbiaville" in self.nic or \ + "x722" in self.nic: outerL4Type = "L4_NONFRAG" ipv6_default_packet_type = ["L2_ETHER", "L3_IPV6_EXT_UNKNOWN"] elif "niantic" in self.nic.lower() or "powerville" in self.nic.lower() or "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinville" in self.nic.lower() or "sageville" in self.nic.lower() or "sagepond" in self.nic.lower() or "springville" in self.nic.lower(): @@ -172,7 +179,9 @@ class TestUniPacket(TestCase): } # delete the unsupported packet based on nic type - if "fortville" in self.nic or "fortpark_TLV" in self.nic or "carlsville" in self.nic or "columbiaville" in self.nic: + if "fortville" in self.nic or "fortpark_TLV" in self.nic or \ + "carlsville" in self.nic or "columbiaville" in self.nic or \ + "x722" in self.nic: pktType.pop("MAC_IPv6FRAG_PKT_N") elif "niantic" in self.nic.lower() or "powerville" in self.nic.lower() or "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinville" in self.nic.lower() or "sageville" in self.nic.lower() or "sagepond" in self.nic.lower() or "springville" in self.nic.lower(): pktType.pop("MAC_IPv6FRAG_PKT_F") -- 2.21.0