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 A5943A04A3; Mon, 4 Nov 2019 03:58:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8881B2F42; Mon, 4 Nov 2019 03:58:53 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 54D722C37 for ; Mon, 4 Nov 2019 03:58:51 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Nov 2019 18:58:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,265,1569308400"; d="scan'208";a="191610080" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga007.jf.intel.com with ESMTP; 03 Nov 2019 18:58:49 -0800 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 3 Nov 2019 18:58:49 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 3 Nov 2019 18:58:49 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.213]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.127]) with mapi id 14.03.0439.000; Mon, 4 Nov 2019 10:58:47 +0800 From: "Tu, Lijuan" To: "Peng, ZhihongX" , "dts@dpdk.org" CC: "Peng, ZhihongX" Thread-Topic: [dts] [PATCH V1] add cvl support for VECTOR configuration Thread-Index: AQHVikL95/g1T/9dA06Y3FAK/SCM46d6Yvvw Date: Mon, 4 Nov 2019 02:58:47 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB5D3F9@SHSMSX101.ccr.corp.intel.com> References: <20191024160201.32520-1-zhihongx.peng@intel.com> In-Reply-To: <20191024160201.32520-1-zhihongx.peng@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjU0MTIzNzctZjExNi00NDVjLThhM2MtZjFhYWVhMDY5OTZkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiN1JwcXhCUVBqOTh1NklvU2tvSlRBamJaTXFVNDUrc1RqR0F3dUJPUEkreHliNzR6TGM4YXl0bGVkcWIrN094NCJ9 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] add cvl support for VECTOR configuration 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 Peng Zhihong > Sent: Friday, October 25, 2019 12:02 AM > To: dts@dpdk.org > Cc: Peng, ZhihongX > Subject: [dts] [PATCH V1] add cvl support for VECTOR configuration >=20 > add cvl support for VECTOR configuration >=20 > Signed-off-by: Peng Zhihong > --- > tests/TestSuite_vxlan.py | 76 +++++++++++++++++++++++++--------------- > 1 file changed, 47 insertions(+), 29 deletions(-) >=20 > diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index > 3651bac..6570364 100644 > --- a/tests/TestSuite_vxlan.py > +++ b/tests/TestSuite_vxlan.py > @@ -261,6 +261,8 @@ class TestVxlan(TestCase, IxiaPacketGenerator): > self.compile_switch =3D 'CONFIG_RTE_LIBRTE_I40E_INC_VECTOR' > elif self.nic in ["sageville", "sagepond"]: > self.compile_switch =3D 'CONFIG_RTE_IXGBE_INC_VECTOR' > + elif self.nic in ["columbiaville_25g","columbiaville_100g"]: > + print "CVL support default none VECTOR" > else: > self.verify(False, "%s not support this vxlan" % self.nic) > # Based on h/w type, choose how many ports to use @@ -521,13 > +523,17 @@ class TestVxlan(TestCase, IxiaPacketGenerator): > """ > verify vxlan packet detection > """ > - out =3D self.dut.send_expect("cat config/common_base", "]# ", 10= ) > - src_vec_model =3D re.search("%s=3D." % self.compile_switch, out)= .group()[- > 1] > - if src_vec_model =3D=3D 'y': > - self.dut.send_expect("sed -i -e 's/%s=3D.*$/" % self.compile= _switch > - + "%s=3Dn/' config/common_base" % self.c= ompile_switch, "# > ", 30) > - self.dut.skip_setup =3D False > - self.dut.build_install_dpdk(self.target) > + 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.search("%s=3D." % self.compile_switch, > out).group()[-1] > + if src_vec_model =3D=3D 'y': > + self.dut.send_expect("sed -i -e 's/%s=3D.*$/" % self.com= pile_switch > + + "%s=3Dn/' config/common_base" % se= lf.compile_switch, > "# ", 30) > + self.dut.skip_setup =3D False > + self.dut.build_install_dpdk(self.target) >=20 > pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ > "%(CHANNEL)d -- -i --disable-rss --rxq=3D4 --txq=3D4" + \ @@= -558,26 > +564,34 @@ class TestVxlan(TestCase, IxiaPacketGenerator): >=20 > out =3D self.dut.send_expect("stop", "testpmd>", 10) > self.dut.send_expect("quit", "#", 10) > - > - 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.compile= _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) > + > + 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.com= pile_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_vxlan_ipv6_detect(self): > """ > verify vxlan packet detection with ipv6 header > """ > - out =3D self.dut.send_expect("cat config/common_base", "]# ", 10= ) > - src_vec_model =3D re.search("%s=3D." % self.compile_switch, out)= .group()[- > 1] > - if src_vec_model =3D=3D 'y': > - self.dut.send_expect("sed -i -e 's/%s=3D.*$/" % self.compile= _switch > - + "%s=3Dn/' config/common_base" % self.c= ompile_switch, "# > ", 30) > - self.dut.skip_setup =3D False > - self.dut.build_install_dpdk(self.target) > + 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.search("%s=3D." % self.compile_switch, > out).group()[-1] > + if src_vec_model =3D=3D 'y': > + self.dut.send_expect("sed -i -e 's/%s=3D.*$/" % self.com= pile_switch > + + "%s=3Dn/' config/common_base" % se= lf.compile_switch, > "# ", 30) > + self.dut.skip_setup =3D False > + self.dut.build_install_dpdk(self.target) >=20 > pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ > "%(CHANNEL)d -- -i --disable-rss --rxq=3D4 --txq=3D4" + \ @@= -613,13 > +627,17 @@ class TestVxlan(TestCase, IxiaPacketGenerator): > out =3D self.dut.send_expect("stop", "testpmd>", 10) > self.dut.send_expect("quit", "#", 10) >=20 > - 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.compile= _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) > + 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.com= pile_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_vxlan_ipv4_checksum_offload(self): > """ > -- > 2.17.1