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 E169CA0525; Fri, 21 Feb 2020 02:51:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D8A0B397D; Fri, 21 Feb 2020 02:51:54 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id AC98E25B3 for ; Fri, 21 Feb 2020 02:51:52 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Feb 2020 17:51:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,466,1574150400"; d="scan'208";a="269818895" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 20 Feb 2020 17:51:51 -0800 Received: from fmsmsx163.amr.corp.intel.com (10.18.125.72) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 20 Feb 2020 17:51:51 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx163.amr.corp.intel.com (10.18.125.72) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 20 Feb 2020 17:51:50 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.201]) with mapi id 14.03.0439.000; Fri, 21 Feb 2020 09:51:48 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" , "Ma, LihongX" Thread-Topic: [dts][PATCH V1 1/1] tests/uni_pkt: x722 support Thread-Index: AQHV5vMb8SotNAzQiEaY0yxUDBPWLagk5PzA Date: Fri, 21 Feb 2020 01:51:48 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBCC801@SHSMSX101.ccr.corp.intel.com> References: <20200219070914.25513-1-yufengx.mo@intel.com> <20200219070914.25513-2-yufengx.mo@intel.com> In-Reply-To: <20200219070914.25513-2-yufengx.mo@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Applied, thanks > -----Original Message----- > From: Mo, YufengX > Sent: Wednesday, February 19, 2020 3:09 PM > To: dts@dpdk.org; Tu, Lijuan ; Ma, LihongX > > Cc: Mo, YufengX > Subject: [dts][PATCH V1 1/1] tests/uni_pkt: x722 support >=20 >=20 > x722 support. >=20 > Signed-off-by: yufengmx > --- > tests/TestSuite_uni_pkt.py | 17 +++++++++++++---- > 1 file changed, 13 insertions(+), 4 deletions(-) >=20 > diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py inde= x > 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) >=20 > + > 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 "car= lsville" 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 =3D "L4_NONFRAG" > ipv4_default_packet_type =3D ["L2_ETHER", "L3_IPV4_EXT_UNKNO= WN"] > elif "niantic" in self.nic.lower() or "powerville" in self.nic.l= ower() or > "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinvi= lle" 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): > } >=20 > # delete the unsupported packet based on nic type > - if "fortville" in self.nic or "fortpark_TLV" in self.nic or "car= lsville" 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.l= ower() or > "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinvi= lle" 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 "car= lsville" 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 =3D "L4_NONFRAG" > ipv6_default_packet_type =3D ["L2_ETHER", "L3_IPV6_EXT_UNKNO= WN"] > elif "niantic" in self.nic.lower() or "powerville" in self.nic.l= ower() or > "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinvi= lle" 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): > } >=20 > # delete the unsupported packet based on nic type > - if "fortville" in self.nic or "fortpark_TLV" in self.nic or "car= lsville" 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.l= ower() or > "cavium" in self.nic.lower() or "twinpond" in self.nic.lower() or "twinvi= lle" 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