From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id A4771A00E6 for ; Fri, 19 Apr 2019 01:36:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 84B2D1BA65; Fri, 19 Apr 2019 01:36:35 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 8BF291B111 for ; Fri, 19 Apr 2019 01:36:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Apr 2019 16:36:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,367,1549958400"; d="scan'208";a="137022404" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga006.jf.intel.com with ESMTP; 18 Apr 2019 16:36:32 -0700 Received: from fmsmsx163.amr.corp.intel.com (10.18.125.72) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 18 Apr 2019 16:36:32 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx163.amr.corp.intel.com (10.18.125.72) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 18 Apr 2019 16:36:31 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.164]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.39]) with mapi id 14.03.0415.000; Fri, 19 Apr 2019 07:36:30 +0800 From: "Tu, Lijuan" To: "usurekha@marvell.com" , "dts@dpdk.org" CC: "fmasood@marvell.com" , "avijay@marvell.com" , "jerinj@marvell.com" Thread-Topic: [dts] [PATCH] nvgre: Added "L3_IPV4" flag for both nvgre and non-nvgre pks for cavium_a063. Thread-Index: AQHU9NzhGEx3dzWYWk6x8AVl74kb8KZClVQA Date: Thu, 18 Apr 2019 23:36:29 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA63E04@SHSMSX101.ccr.corp.intel.com> References: <1555478168-28885-1-git-send-email-usurekha@marvell.com> In-Reply-To: <1555478168-28885-1-git-send-email-usurekha@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.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjlmYTljZmYtNTQyMC00ZWFiLTgxM2UtMGFlODlkZDM3YzQzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicGJ0TEtwejBocnM5N1lnSGtOYUM4MjRoRE9mUWhtd3dxTjUrUDVjYk1KVDEyVHhUdDR4OXU5Rm5Uc3lvdThPeiJ9 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] nvgre: Added "L3_IPV4" flag for both nvgre and non-nvgre pks for cavium_a063. 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 > usurekha@marvell.com > Sent: Tuesday, April 16, 2019 10:16 PM > To: dts@dpdk.org > Cc: fmasood@marvell.com; avijay@marvell.com; jerinj@marvell.com; > usurekha > Subject: [dts] [PATCH] nvgre: Added "L3_IPV4" flag for both nvgre and non= - > nvgre pks for cavium_a063. >=20 > From: usurekha >=20 > As otx2 hw is capable of identifying pkt as "L3_IPV4" for both normal and > tunnelled pkts instead of "L3_IPV4_EXT_UNKNOWN" flag. > So added "L3_IPv4" flag to identify the pkt for cavium device. >=20 > Signed-off-by: usurekha > --- > tests/TestSuite_nvgre.py | 20 ++++++++++++++++---- > 1 file changed, 16 insertions(+), 4 deletions(-) >=20 > diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py index > c4da924..aea915c 100644 > --- a/tests/TestSuite_nvgre.py > +++ b/tests/TestSuite_nvgre.py > @@ -158,11 +158,23 @@ class NvgreTestConfig(object): > self.inner_l4_invalid =3D 0 > self.payload_size =3D 18 >=20 > - def packet_type(self): > + def packet_type(self,nic =3D None): > """ > Return nvgre packet type > """ > - if self.outer_ip_proto !=3D 47: > + if "cavium_a063" in nic: > + if self.outer_ip_proto !=3D47: > + if self.outer_l3_type =3D=3D 'IPv4': > + return 'L3_IPV4' > + else: > + return 'L3_IPV6' > + else: > + if self.inner_l3_type =3D=3D 'IPv4': > + return 'L3_IPV4' > + else: > + return 'L3_IPV6' > + > + elif self.outer_ip_proto !=3D 47: > if self.outer_l3_type =3D=3D 'IPv4': > return 'L3_IPV4_EXT_UNKNOWN' > else: > @@ -349,7 +361,7 @@ class TestNvgre(TestCase): > nvgre Prerequisites > """ > # this feature only enable in FVL now > - if self.nic in ["fortville_eagle", "fortville_spirit", "fortvill= e_spirit_single", > "fortville_25g", "fortpark_TLV"]: > + if self.nic in ["fortville_eagle", "fortville_spirit", "fortvill= e_spirit_single", > "fortville_25g", "fortpark_TLV", "cavium_a063"]: > 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' > @@ -458,7 +470,7 @@ class TestNvgre(TestCase): > # check whether detect nvgre type > out =3D self.dut.get_session_output() > print out > - self.verify(config.packet_type() in out, "Nvgre Packet not detec= ted") > + self.verify(config.packet_type(self.nic) in out, "Nvgre Packet > + not detected") > self.dut.send_expect("show port stats all", "testpmd>", 10) > self.dut.send_expect("stop", "testpmd>", 10) > self.dut.send_expect("quit", "#", 10) > -- > 2.7.4