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 67312A04F7; Fri, 20 Dec 2019 09:07:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5E6C32C17; Fri, 20 Dec 2019 09:07:00 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8C3072C17 for ; Fri, 20 Dec 2019 09:06:58 +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 orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Dec 2019 00:06:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,335,1571727600"; d="scan'208";a="366326975" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga004.jf.intel.com with ESMTP; 20 Dec 2019 00:06:56 -0800 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 20 Dec 2019 00:06:56 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 20 Dec 2019 00:06:55 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.19]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.214]) with mapi id 14.03.0439.000; Fri, 20 Dec 2019 16:06:54 +0800 From: "Tu, Lijuan" To: "nareddy@marvell.com" , "dts@dpdk.org" CC: "pvukkisala@marvell.com" Thread-Topic: [dts] [PATCH] TestSuite_ipgre.py: cavium_a063 and cavium_a064 supports IPv4 GRE Thread-Index: AQHVtY6Jrc/jRl9kAkGC70ymPmHbgqfCrb4g Date: Fri, 20 Dec 2019 08:06:54 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB8A20E@SHSMSX101.ccr.corp.intel.com> References: <1576665159-6699-1-git-send-email-nareddy@marvell.com> In-Reply-To: <1576665159-6699-1-git-send-email-nareddy@marvell.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] TestSuite_ipgre.py: cavium_a063 and cavium_a064 supports IPv4 GRE 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 > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of > nareddy@marvell.com > Sent: Wednesday, December 18, 2019 6:33 PM > To: dts@dpdk.org > Cc: pvukkisala@marvell.com; Praneeth Reddy > Subject: [dts] [PATCH] TestSuite_ipgre.py: cavium_a063 and cavium_a064 > supports IPv4 GRE >=20 > From: Praneeth Reddy >=20 > Added support GRE for cavium_a063 and cavium_a064 Hardware vlan is not > supported for cavium_a063 and cavium_a064 test_GRE_packet_filter is not > supported by cavium_a063 and cavium_a064, added to checklist >=20 > Signed-off-by: Praneeth Reddy > --- > conf/test_case_checklist.json | 4 +- > tests/TestSuite_ipgre.py | 91 ++++++++++++++++++++++++++++---------= ----- > - > 2 files changed, 63 insertions(+), 32 deletions(-) >=20 > diff --git a/conf/test_case_checklist.json b/conf/test_case_checklist.jso= n > index 38b1335..a42d1e7 100644 > --- a/conf/test_case_checklist.json > +++ b/conf/test_case_checklist.json > @@ -2407,7 +2407,9 @@ > ], > "NIC": [ > "columbiaville_25g", > - "columbiaville_100g" > + "columbiaville_100g", > + "cavium_a063", > + "cavium_a064" > ], > "Target": [ > "ALL" > diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py index > c6bb380..71f26cd 100644 > --- a/tests/TestSuite_ipgre.py > +++ b/tests/TestSuite_ipgre.py > @@ -65,8 +65,8 @@ class TestIpgre(TestCase): > ports =3D self.dut.get_ports() > self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > "fortville_spirit_single", "fortville_2= 5g", "carlsville", > - "columbiaville_25g", "columbiaville_100= g"], > - "GRE tunnel packet type only support by fortville an= d carlsville") > + "columbiaville_25g", "columbiaville_100= g", > "cavium_a063", "cavium_a064"], > + "GRE tunnel packet type only support by fortville, > + carlsville and cavium") > self.verify(len(ports) >=3D 1, "Insufficient ports for testing") > valports =3D [_ for _ in ports if self.tester.get_local_port(_) = !=3D -1] > # start testpmd > @@ -189,14 +189,24 @@ class TestIpgre(TestCase): > Start testpmd and enable rxonly forwarding mode > Send packet as table listed and packet type match each layer > """ > - pkt_types =3D { > - "MAC_IP_GRE_IPv4-TUNNEL_UDP_PKT": ["TUNNEL_GRENAT", > "INNER_L4_UDP"], > - "MAC_IP_GRE_IPv4-TUNNEL_TCP_PKT": ["TUNNEL_GRENAT", > "INNER_L4_TCP"], > - "MAC_IP_GRE_IPv4-TUNNEL_SCTP_PKT": ["TUNNEL_GRENAT", > "INNER_L4_SCTP"], > - "MAC_VLAN_IP_GRE_IPv4-TUNNEL_UDP_PKT": ["TUNNEL_GRENAT", > "INNER_L4_UDP"], > - "MAC_VLAN_IP_GRE_IPv4-TUNNEL_TCP_PKT": ["TUNNEL_GRENAT", > "INNER_L4_TCP"], > - "MAC_VLAN_IP_GRE_IPv4-TUNNEL_SCTP_PKT": ["TUNNEL_GRENAT", > "INNER_L4_SCTP"] > - } > + if (self.nic in ["cavium_a063", "cavium_a064"]): > + pkt_types =3D { > + "MAC_IP_GRE_IPv4-TUNNEL_UDP_PKT": ["TUNNEL_GRE", > "INNER_L4_UDP"], > + "MAC_IP_GRE_IPv4-TUNNEL_TCP_PKT": ["TUNNEL_GRE", > "INNER_L4_TCP"], > + "MAC_IP_GRE_IPv4-TUNNEL_SCTP_PKT": ["TUNNEL_GRE", > "INNER_L4_SCTP"], > + "MAC_VLAN_IP_GRE_IPv4-TUNNEL_UDP_PKT": ["TUNNEL_GRE", > "INNER_L4_UDP"], > + "MAC_VLAN_IP_GRE_IPv4-TUNNEL_TCP_PKT": ["TUNNEL_GRE", > "INNER_L4_TCP"], > + "MAC_VLAN_IP_GRE_IPv4-TUNNEL_SCTP_PKT": ["TUNNEL_GRE", > "INNER_L4_SCTP"] > + } > + else: > + pkt_types =3D { > + "MAC_IP_GRE_IPv4-TUNNEL_UDP_PKT": ["TUNNEL_GRENAT= ", > "INNER_L4_UDP"], > + "MAC_IP_GRE_IPv4-TUNNEL_TCP_PKT": ["TUNNEL_GRENAT= ", > "INNER_L4_TCP"], > + "MAC_IP_GRE_IPv4-TUNNEL_SCTP_PKT": ["TUNNEL_GRENAT= ", > "INNER_L4_SCTP"], > + "MAC_VLAN_IP_GRE_IPv4-TUNNEL_UDP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_UDP"], > + "MAC_VLAN_IP_GRE_IPv4-TUNNEL_TCP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_TCP"], > + "MAC_VLAN_IP_GRE_IPv4-TUNNEL_SCTP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_SCTP"] > + } > config_layers =3D {'ether': {'src': self.outer_mac_src}, > 'ipv4': {'proto': 'gre'}} > # Start testpmd and enable rxonly forwarding mode @@ -217,29 > +227,48 @@ class TestIpgre(TestCase): > Start testpmd and enable rxonly forwarding mode > Send packet as table listed and packet type match each layer > """ > - pkt_types_ipv6_ip =3D { > - "MAC_IPv6_GRE_IPv4-TUNNEL_UDP_PKT": ["TUNNEL_GRENA= T", > "INNER_L4_UDP"], > - "MAC_IPv6_GRE_IPv4-TUNNEL_TCP_PKT": ["TUNNEL_GRENA= T", > "INNER_L4_TCP"], > - "MAC_IPv6_GRE_IPv4-TUNNEL_SCTP_PKT": ["TUNNEL_GRENA= T", > "INNER_L4_SCTP"], > - "MAC_VLAN_IPv6_GRE_IPv4-TUNNEL_UDP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_UDP", "PKT_RX_VLAN"], > - "MAC_VLAN_IPv6_GRE_IPv4-TUNNEL_TCP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_TCP", "PKT_RX_VLAN"], > - "MAC_VLAN_IPv6_GRE_IPv4-TUNNEL_SCTP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_SCTP", "PKT_RX_VLAN"] > - } > - > - pkt_types_ipv6_ipv6 =3D { > - "MAC_IPv6_GRE_IPv6-TUNNEL_UDP_PKT": ["TUNNEL_GRENAT"= , > "INNER_L4_UDP"], > - "MAC_IPv6_GRE_IPv6-TUNNEL_TCP_PKT": ["TUNNEL_GRENAT"= , > "INNER_L4_TCP"], > - "MAC_VLAN_IPv6_GRE_IPv6-TUNNEL_UDP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_UDP", "PKT_RX_VLAN"], > - "MAC_VLAN_IPv6_GRE_IPv6-TUNNEL_TCP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_TCP", "PKT_RX_VLAN"] > - } > - > - pkt_types_ipv6_ipv6_SCTP =3D { > - "MAC_IPv6_GRE_IPv6-TUNNEL_SCTP_PKT": ["TUNNEL_GRENAT"= , > "INNER_L4_SCTP"], > - "MAC_VLAN_IPv6_GRE_IPv6-TUNNEL_SCTP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_SCTP", "PKT_RX_VLAN"] > - } > + if (self.nic in ["cavium_a063", "cavium_a064"]): > + pkt_types_ipv6_ip =3D { > + "MAC_IPv6_GRE_IPv4-TUNNEL_UDP_PKT": ["TUNNEL_G= RE", > "INNER_L4_UDP"], > + "MAC_IPv6_GRE_IPv4-TUNNEL_TCP_PKT": ["TUNNEL_G= RE", > "INNER_L4_TCP"], > + "MAC_IPv6_GRE_IPv4-TUNNEL_SCTP_PKT": ["TUNNEL_G= RE", > "INNER_L4_SCTP"] > + } > + > + pkt_types_ipv6_ipv6 =3D { > + "MAC_IPv6_GRE_IPv6-TUNNEL_UDP_PKT": ["TUNNEL_GRE= ", > "INNER_L4_UDP"], > + "MAC_IPv6_GRE_IPv6-TUNNEL_TCP_PKT": ["TUNNEL_GRE= ", > "INNER_L4_TCP"] > + } > + > + pkt_types_ipv6_ipv6_SCTP =3D { > + "MAC_IPv6_GRE_IPv6-TUNNEL_SCTP_PKT": ["TUNNEL_GRE= ", > "INNER_L4_SCTP"] > + } > + else: > + pkt_types_ipv6_ip =3D { > + "MAC_IPv6_GRE_IPv4-TUNNEL_UDP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_UDP"], > + "MAC_IPv6_GRE_IPv4-TUNNEL_TCP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_TCP"], > + "MAC_IPv6_GRE_IPv4-TUNNEL_SCTP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_SCTP"], > + "MAC_VLAN_IPv6_GRE_IPv4-TUNNEL_UDP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_UDP", "PKT_RX_VLAN"], > + "MAC_VLAN_IPv6_GRE_IPv4-TUNNEL_TCP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_TCP", "PKT_RX_VLAN"], > + "MAC_VLAN_IPv6_GRE_IPv4-TUNNEL_SCTP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_SCTP", "PKT_RX_VLAN"] > + } > + > + pkt_types_ipv6_ipv6 =3D { > + "MAC_IPv6_GRE_IPv6-TUNNEL_UDP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_UDP"], > + "MAC_IPv6_GRE_IPv6-TUNNEL_TCP_PKT": ["TUNNEL_GRE= NAT", > "INNER_L4_TCP"], > + "MAC_VLAN_IPv6_GRE_IPv6-TUNNEL_UDP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_UDP", "PKT_RX_VLAN"], > + "MAC_VLAN_IPv6_GRE_IPv6-TUNNEL_TCP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_TCP", "PKT_RX_VLAN"] > + } > + > + pkt_types_ipv6_ipv6_SCTP =3D { > + "MAC_IPv6_GRE_IPv6-TUNNEL_SCTP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_SCTP"], > + "MAC_VLAN_IPv6_GRE_IPv6-TUNNEL_SCTP_PKT": > ["TUNNEL_GRENAT", "INNER_L4_SCTP", "PKT_RX_VLAN"] > + } >=20 > # Start testpmd and enable rxonly forwarding mode > - testpmd_cmd =3D "./%s/app/testpmd -c ffff -n 4 -- -i --enable-rx= -cksum -- > enable-hw-vlan" % self.target > + if (self.nic in ["cavium_a063", "cavium_a064"]): > + testpmd_cmd =3D "./%s/app/testpmd -c ffff -n 4 -- -i --enabl= e-rx- > cksum" % self.target > + else: > + testpmd_cmd =3D "./%s/app/testpmd -c ffff -n 4 -- -i > + --enable-rx-cksum --enable-hw-vlan" % self.target > self.dut.send_expect(testpmd_cmd, "testpmd>", 20) > self.dut.send_expect("set fwd rxonly", "testpmd>") > self.dut.send_expect("set verbose 1", "testpmd>") > -- > 1.8.3.1