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 78589A2EFC for ; Tue, 17 Sep 2019 02:45:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 25DF51BFC1; Tue, 17 Sep 2019 02:45:44 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 248211BFBD for ; Tue, 17 Sep 2019 02:45:41 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Sep 2019 17:45:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,514,1559545200"; d="scan'208";a="193606154" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 16 Sep 2019 17:45:41 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Sep 2019 17:45:40 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.195]) with mapi id 14.03.0439.000; Tue, 17 Sep 2019 08:45:39 +0800 From: "Tu, Lijuan" To: "He, Zhiwei" , "dts@dpdk.org" CC: "He, Zhiwei" Thread-Topic: [dts] [PATCH] tests/TestSuite_nvgre :Change the IPV4 , IPV6 and IPV6offloadchecksum case to support all nic Thread-Index: AQHVYujZUQ3ekP+ac0ueWTVoXJS3ZacvHJcQ Date: Tue, 17 Sep 2019 00:45:38 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB22573@SHSMSX101.ccr.corp.intel.com> References: <1567577973-89197-1-git-send-email-zhiwei.he@intel.com> In-Reply-To: <1567577973-89197-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiN2MxNDkyNWMtNDhlZi00ZDE3LWIyYWMtODVjZTI0YzZkZTRjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUVNVRFB0ampvUGhwN0dmRnk5YjhlK0VXZFR6UDdnSzl6ek9oVjVhVkdGS1hMMTZ5U1FUNjF0c09ZTzFHV2EzXC8ifQ== 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] tests/TestSuite_nvgre :Change the IPV4 , IPV6 and IPV6offloadchecksum case to support all nic 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: Wednesday, September 4, 2019 2:20 PM > To: dts@dpdk.org > Cc: He, Zhiwei > Subject: [dts] [PATCH] tests/TestSuite_nvgre :Change the IPV4 , IPV6 and > IPV6offloadchecksum case to support all nic >=20 > From: "zhiwei.he" >=20 > Signed-off-by: zhiwei.he > --- > tests/TestSuite_nvgre.py | 38 +++++++++++++++++++++++++++++++------- > 1 file changed, 31 insertions(+), 7 deletions(-) >=20 > diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py index > 58335f9..5734652 100644 > --- a/tests/TestSuite_nvgre.py > +++ b/tests/TestSuite_nvgre.py > @@ -93,8 +93,8 @@ class NvgreTestConfig(object): > self.outer_ip_dst =3D '192.168.1.2' > self.outer_ip_invalid =3D 0 >=20 > - self.outer_ip6_src =3D 'N/A' > - self.outer_ip6_dst =3D 'N/A' > + self.outer_ip6_src =3D 'FE80:0:0:0:0:0:0:0' > + self.outer_ip6_dst =3D 'FE80:0:0:0:0:0:0:1' > self.outer_ip6_invalid =3D 0 > """ > gre info > @@ -150,8 +150,8 @@ class NvgreTestConfig(object): > self.inner_ip_dst =3D '192.168.2.2' > self.inner_ip_invalid =3D 0 >=20 > - self.inner_ip6_src =3D 'N/A' > - self.inner_ip6_dst =3D 'N/A' > + self.inner_ip6_src =3D 'FE80:0:0:0:0:0:0:0' > + self.inner_ip6_dst =3D 'FE80:0:0:0:0:0:0:1' > self.inner_ip6_invalid =3D 0 >=20 > self.inner_l4_type =3D 'UDP' > @@ -622,6 +622,19 @@ class TestNvgre(TestCase): > """ > verify nvgre packet with ipv6 > """ > + # packet type detect must used without VECTOR pmd > + if self.nic in ["columbiaville_25g","columbiaville_100g"]: > + print "CVL support default none VECTOR" > + src_vec_model =3D 'n' > + else: > + out =3D self.dut.send_expect("cat config/common_base", "]# ",= 10) > + src_vec_model =3D re.findall("%s=3D." % self.compile_switch, = out)[0][-1] > + if src_vec_model =3D=3D 'y': > + self.dut.send_expect("sed -i -e 's/%s=3D.*$/" % self.compi= le_switch > + + "%s=3Dn/' config/common_base" % self= .compile_switch, > "# ", 30) > + self.dut.skip_setup =3D False > + self.dut.build_install_dpdk(self.target) > + > # check no nvgre packet > self.nvgre_detect(outer_l3_type =3D "IPv6", outer_ip_proto=3D0xF= F) > # check nvgre + IPv6 inner packet @@ -636,6 +649,17 @@ class > TestNvgre(TestCase): > self.nvgre_detect(outer_l3_type =3D "IPv6", inner_l3_type=3D"IPv= 6", > outer_vlan=3D1) > # check vlan nvgre + vlan inner and outer packet > self.nvgre_detect(outer_l3_type =3D "IPv6", inner_l3_type=3D"IPv= 6", > outer_vlan=3D1, inner_vlan=3D1) > + if self.nic in ["columbiaville_25g","columbiaville_100g"]: > + print "CVL support default none VECTOR" > + src_vec_model =3D 'n' > + else: > + out =3D self.dut.send_expect("cat config/common_base", "]# ",= 10) > + dst_vec_model =3D re.findall("%s=3D." % self.compile_switch, = out)[0][-1] > + if src_vec_model !=3D dst_vec_model: > + self.dut.send_expect("sed -i -e 's/%s=3D.*$/" % self.compi= le_switch > + + "%s=3D%s/' config/common_base" % > (self.compile_switch, src_vec_model), "# ", 30) > + self.dut.skip_setup =3D False > + self.dut.build_install_dpdk(self.target) >=20 > def test_nvgre_ipv6_checksum_offload(self): > # check nvgre packet + inner IPv6 + inner L4 invalid @@ -682,7 = +706,7 > @@ class TestNvgre(TestCase): > src_vec_model =3D re.findall("%s=3D." % self.compile_switch, = out)[0][-1] > if src_vec_model =3D=3D 'y': > self.dut.send_expect("sed -i -e 's/%s=3D.*$/" % self.compi= le_switch > - + "%s=3Dn/' config/common_base" % self.c= ompile_switch, > "# ", 30) > + + "%s=3Dn/' config/common_base" % > + self.compile_switch, "# ", 30) > self.dut.skip_setup =3D False > self.dut.build_install_dpdk(self.target) >=20 > @@ -693,7 +717,7 @@ class TestNvgre(TestCase): > # check nvgre + udp inner packet > self.nvgre_detect(inner_l4_type=3D'TCP') > # check nvgre + SCTP inner packet > - # self.nvgre_detect(inner_l4_type=3D'SCTP') > + self.nvgre_detect(inner_l4_type=3D'SCTP') > # check nvgre + vlan inner packet > self.nvgre_detect(outer_vlan=3D1) > # check vlan nvgre + vlan inner packet @@ -706,7 +730,7 @@ class > TestNvgre(TestCase): > dst_vec_model =3D re.findall("%s=3D." % self.compile_switch, = out)[0][-1] > if src_vec_model !=3D dst_vec_model: > self.dut.send_expect("sed -i -e 's/%s=3D.*$/" % self.compi= le_switch > - + "%s=3D%s/' config/common_base" % (self= .compile_switch, > src_vec_model), "# ", 30) > + + "%s=3D%s/' config/common_base" % > + (self.compile_switch, src_vec_model), "# ", 30) > self.dut.skip_setup =3D False > self.dut.build_install_dpdk(self.target) > def test_tunnel_filter(self): > -- > 1.8.3.1