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 58455A2E1B for ; Wed, 4 Sep 2019 05:03:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 505521ECD5; Wed, 4 Sep 2019 05:03:22 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id E2B581EB8D for ; Wed, 4 Sep 2019 05:03:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Sep 2019 20:03:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,465,1559545200"; d="scan'208";a="194560167" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga002.jf.intel.com with ESMTP; 03 Sep 2019 20:03:19 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 3 Sep 2019 20:03:19 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 3 Sep 2019 20:03:18 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.53]) with mapi id 14.03.0439.000; Wed, 4 Sep 2019 11:03:14 +0800 From: "Tu, Lijuan" To: "He, Zhiwei" , "dts@dpdk.org" CC: "He, Zhiwei" Thread-Topic: [dts] [PATCH V2 ] tests/TestSuite_uni_pkt: enable CVL25G&100G nic to support uni_pkt case Thread-Index: AQHVX0Dx/tB4pY7lck+DPTlJy/veTqca3A9A Date: Wed, 4 Sep 2019 03:03:14 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB1ACBA@SHSMSX101.ccr.corp.intel.com> References: <1567176054-40524-1-git-send-email-zhiwei.he@intel.com> In-Reply-To: <1567176054-40524-1-git-send-email-zhiwei.he@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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDdlZThkZDctOWU0Zi00YzU5LWJlNGYtN2E2MDQxMjYwOWM5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTUYxY2F1NGZmV0FwS3BOV2haWEMwVERjWWgyZlgzTFZBY0VtUTUrVGQ2U1c4bkpaRTNKbWtuajVhc0RuN1BRVCJ9 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 V2 ] tests/TestSuite_uni_pkt: enable CVL25G&100G nic to support uni_pkt case 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: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhiwei.he > Sent: Friday, August 30, 2019 10:41 PM > To: dts@dpdk.org > Cc: He, Zhiwei > Subject: [dts] [PATCH V2 ] tests/TestSuite_uni_pkt: enable CVL25G&100G ni= c > to support uni_pkt case >=20 > From: "zhiwei.he" >=20 > Signed-off-by: zhiwei.he > --- > tests/TestSuite_uni_pkt.py | 43 +++++++++++++++++++++++++---------------= --- > 1 file changed, 25 insertions(+), 18 deletions(-) >=20 > diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py inde= x > e70bc0d..0a49a0a 100644 > --- a/tests/TestSuite_uni_pkt.py > +++ b/tests/TestSuite_uni_pkt.py > @@ -93,14 +93,21 @@ class TestUniPacket(TestCase): > """ > Check whether L2 packet can be detected" > """ > - self.verify(("fortville" in self.nic or "fortpark_TLV" in self.n= ic or > "carlsville" in self.nic), > + self.verify(("fortville" in self.nic or "fortpark_TLV" in > + self.nic or "carlsville" in self.nic or "columbiaville" in self.nic), > "L2 packet detect only support by Fortville") > - self.L2_types =3D { > - "TIMESYNC": "L2_ETHER_TIMESYNC", > - "ARP": "L2_ETHER_ARP", > - "LLDP": "L2_ETHER_LLDP", > - } > - > + #Change this code start for DPDK-15109, the share code doest not > support TIMESYNC, once /supported then will enable > + if "columbiaville" in self.nic: > + self.L2_types =3D { > + "ARP": "L2_ETHER_ARP", > + "LLDP": "L2_ETHER_LLDP", > + } > + else: > + self.L2_types =3D { > + "TIMESYNC": "L2_ETHER_TIMESYNC", > + "ARP": "L2_ETHER_ARP", > + "LLDP": "L2_ETHER_LLDP", > + } > + #Change this code end for DPDK-15109, the share code doest not > + support TIMESYNC, once supported then will enable > for l2_type in self.L2_types.keys(): > pkt_name =3D self.L2_types[l2_type] > pkt =3D Packet(pkt_type=3Dl2_type) @@ -115,7 +122,7 @@ class > TestUniPacket(TestCase): > """ > 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: > + if "fortville" in self.nic or "fortpark_TLV" in self.nic or "car= lsville" in > self.nic or "columbiaville" 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(): > @@ -133,7 +140,7 @@ 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: > + if "fortville" in self.nic or "fortpark_TLV" in self.nic or "car= lsville" in > self.nic or "columbiaville" 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(): > @@ -146,7 +153,7 @@ 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: > + if "fortville" in self.nic or "fortpark_TLV" in self.nic or "car= lsville" in > self.nic or "columbiaville" 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(): > @@ -162,7 +169,7 @@ 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: > + if "fortville" in self.nic or "fortpark_TLV" in self.nic or "car= lsville" in > self.nic or "columbiaville" 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") @@ -174,7 +181,7 @@ class > TestUniPacket(TestCase): > checked that whether IP in IPv4 tunnel packet can be normally > detected by Fortville. > """ > - self.verify(("fortville" in self.nic or "fortpark_TLV" in self.n= ic or > "carlsville" in self.nic), > + self.verify(("fortville" in self.nic or "fortpark_TLV" in > + self.nic or "carlsville" in self.nic or "columbiaville" in self.nic), > "IP in IPv4 tunnel packet type detect only support b= y Fortville") > ipv4_in_ipv4_packet_type =3D ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN", > "TUNNEL_IP", "INNER_L3_IPV4_EXT_UNKNOWN"] > ipv6_in_ipv4_packet_type =3D ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN", > "TUNNEL_IP", "INNER_L3_IPV6_EXT_UNKNOWN"] @@ -201,7 +208,7 @@ > class TestUniPacket(TestCase): > checked that whether IPv4 in IPv6 tunnel packet can be normally > detected. > """ > - self.verify(self.nic in ["niantic", "fortville_eagle", > "fortville_spirit","powerville", "fortpark_TLV", > + self.verify(self.nic in ["columbiaville_25g", > + "columbiaville_100g", "niantic", "fortville_eagle", > + "fortville_spirit","powerville", "fortpark_TLV", > "fortville_25g", "fortville_spirit_single", "carlsville"], "= not > support %s" % self.nic) > pktType =3D { > "MAC_IP_IPv6_PKT": ["L2_ETHER", "L3_IPV4", "TUNNE= L_IP", > "INNER_L3_IPV6"], > @@ -218,7 +225,7 @@ class TestUniPacket(TestCase): > checked that whether IP in IPv6 tunnel packet can be normally > detected by Fortville. > """ > - self.verify(("fortville" in self.nic or "fortpark_TLV" in self.n= ic or > "carlsville" in self.nic), > + self.verify(("fortville" in self.nic or "fortpark_TLV" in > + self.nic or "carlsville" in self.nic or "columbiaville" in self.nic), > "IP in IPv6 tunnel packet type detect only support b= y Fortville") > ipv4_in_ipv6_packet_type =3D ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN", > "TUNNEL_IP", "INNER_L3_IPV4_EXT_UNKNOWN"] > ipv6_in_ipv6_packet_type =3D ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN", > "TUNNEL_IP", "INNER_L3_IPV6_EXT_UNKNOWN"] @@ -244,7 +251,7 @@ > class TestUniPacket(TestCase): > checked that whether NVGRE tunnel packet can be normally detecte= d > by Fortville. > """ > - self.verify(("fortville" in self.nic or "fortpark_TLV" in self.n= ic or > "carlsville" in self.nic), > + self.verify(("fortville" in self.nic or "fortpark_TLV" in > + self.nic or "carlsville" in self.nic or "columbiaville" in self.nic), > "NVGRE tunnel packet type detect only support by For= tville") > nvgre_base_packet_type =3D ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN", > "TUNNEL_GRENAT"] > # INNER IPV4 not with vlan > @@ -281,7 +288,7 @@ class TestUniPacket(TestCase): > checked that whether NVGRE in IPv6 tunnel packet can be normally > detected by Fortville. > """ > - self.verify(("fortville" in self.nic or "fortpark_TLV" in self.n= ic or > "carlsville" in self.nic), > + self.verify(("fortville" in self.nic or "fortpark_TLV" in > + self.nic or "carlsville" in self.nic or "columbiaville" in self.nic), > "NVGRE in IPv6 detect only support by Fortville") > nvgre_base_packet_type =3D ["L2_ETHER", "L3_IPV6_EXT_UNKNOWN", > "TUNNEL_GRENAT"] > # INNER IPV4 not with vlan > @@ -352,7 +359,7 @@ class TestUniPacket(TestCase): > """ > checked that whether GRE tunnel packet can be normally detected = by > Fortville. > """ > - self.verify(("fortville" in self.nic or "fortpark_TLV" in self.n= ic or > "carlsville" in self.nic), > + self.verify(("fortville" in self.nic or "fortpark_TLV" in > + self.nic or "carlsville" in self.nic or "columbiaville" in self.nic), > "GRE tunnel packet type detect only support by Fortv= ille") > base_packet_type =3D [" L2_ETHER", " L3_IPV4_EXT_UNKNOWN", > "TUNNEL_GRENAT"] > pktType =3D { > @@ -371,7 +378,7 @@ class TestUniPacket(TestCase): > checked that whether Vxlan tunnel packet can be normally detecte= d by > Fortville. > """ > - self.verify(("fortville" in self.nic or "fortpark_TLV" in self.n= ic or > "carlsville" in self.nic), > + self.verify(("fortville" in self.nic or "fortpark_TLV" in > + self.nic or "carlsville" in self.nic or "columbiaville" in self.nic), > "Vxlan tunnel packet type detect only support by For= tville") >=20 > self.dut.send_expect("rx_vxlan_port add 4789 0", "testpmd>", 10) > -- > 1.8.3.1