From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 49F3D2C8 for ; Thu, 25 Aug 2016 09:00:29 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 25 Aug 2016 00:00:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,574,1464678000"; d="scan'208";a="1041197464" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 25 Aug 2016 00:00:13 -0700 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 25 Aug 2016 00:00:12 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 25 Aug 2016 00:00:11 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.181]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.194]) with mapi id 14.03.0301.000; Thu, 25 Aug 2016 15:00:08 +0800 From: "Liu, Yong" To: "Xu, HuilongX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1] fix vxlan failed case Thread-Index: AQHR/dSpdNuOVz/QS023A9GisrJ1caBZMrmA//+DGACAAIhQcA== Date: Thu, 25 Aug 2016 07:00:07 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E22275456@SHSMSX103.ccr.corp.intel.com> References: <1472021516-27491-1-git-send-email-huilongx.xu@intel.com> <57BE8B85.3090708@intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNmFlNWU5ZjUtNGJmNC00OGE4LTk3YTAtZjhjZTkzMDY3MmY1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImYrakdicmlpZ29yM0huRjBNTmV6VlVnXC96clNkeXkrUUV2Qm96eWxrMUxvPSJ9 x-ctpclassification: CTP_IC 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] fix vxlan failed 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: , X-List-Received-Date: Thu, 25 Aug 2016 07:00:29 -0000 Thanks for clear this. =20 There's one open discussion for vector mode switch in DTS. One option is use testpmd parameter "enable-rx-cksum". It work on ixgbe and= i40e, but this method maybe invalid in later release. Another option is just like patch, we switch between vector and scatter pm= d by configuration file. Between the switch, it will take long time for rec= ompile dpdk. There's another way is that we build different kinds of testpmd application= s like vector/legacy/scatter. It can skip build between switch modes. Marvin, > -----Original Message----- > From: Xu, HuilongX > Sent: Thursday, August 25, 2016 2:42 PM > To: Liu, Yong; dts@dpdk.org > Subject: RE: [dts] [PATCH V1] fix vxlan failed case >=20 > Hi yong, > Only packet type detect case need without VEC PMD. Other cases support > with VEC PMD and without VEC PMD. > So for every packet type detect case need re-compile dpdk when we test > with VEC PMD. > Thanks a lot >=20 >=20 > > -----Original Message----- > > From: Liu, Yong > > Sent: Thursday, August 25, 2016 2:09 PM > > To: Xu, HuilongX; dts@dpdk.org > > Subject: Re: [dts] [PATCH V1] fix vxlan failed case > > > > Thanks huilong, two comments. > > 1. no need to change the setting in all cases. Only one time in > > set_up_all is enough. > > 2. Nvgre patch has been merged, please send out patch only for vxlan > > suite. > > > > On 08/24/2016 02:51 PM, xu,huilong wrote: > > > 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.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.compile_switch > > > + + "%s=3Dn/' config/common_base" % > > self.compile_switch, "# ", 30) > > > + self.dut.skip_setup =3D False > > > + self.dut.build_install_dpdk(self.target) > > > + > > > pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n "= + > > \ > > > "%(CHANNEL)d -- -i --disable-rss --rxq=3D4 --txq=3D4" += \ > > > " --nb-cores=3D4 --portmask=3D%(PORT)s --txqflags=3D0x0= " > > > @@ -596,6 +624,14 @@ class TestVxlan(TestCase, IxiaPacketGenerator): > > > 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) > > > + > > > def test_vxlan_ipv4_checksum_offload(self): > > > """ > > > verify vxlan packet checksum offload > > > -- 1.9.3