From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id DF7FE16E for ; Mon, 18 Jun 2018 18:28:09 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jun 2018 09:28:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,240,1526367600"; d="scan'208";a="238464416" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by fmsmga006.fm.intel.com with ESMTP; 18 Jun 2018 09:28:07 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.139]) by IRSMSX109.ger.corp.intel.com ([169.254.13.225]) with mapi id 14.03.0319.002; Mon, 18 Jun 2018 17:28:06 +0100 From: "Iremonger, Bernard" To: Nelio Laranjeiro , "dev@dpdk.org" , Adrien Mazarguil , "Lu, Wenzhuo" , "Wu, Jingjing" , "Awal, Mohammad Abdul" Thread-Topic: [PATCH v3 0/2] app/testpmd implement VXLAN/NVGRE Encap/Decap Thread-Index: AQHUBxHFyTKZEUjBkUW5k2KrTbrrgaRmMxyg Date: Mon, 18 Jun 2018 16:28:05 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C260CB4ACD@IRSMSX108.ger.corp.intel.com> References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGNjNmMxZjctNDRiOC00OTQzLTkwYWYtNmFlOTU0NTMwYzIyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoieG1EU2lrQmd6RTlxQlpQaVVtTFI5XC85bTJjZFwvMFNaV2o1VUhlamJZaHJJSUZxWTVXZzJLK1k1d1dKRjlqXC9oOSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 0/2] app/testpmd implement VXLAN/NVGRE Encap/Decap X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2018 16:28:10 -0000 Hi Nelio, > -----Original Message----- > From: Nelio Laranjeiro [mailto:nelio.laranjeiro@6wind.com] > Sent: Monday, June 18, 2018 3:37 PM > To: dev@dpdk.org; Adrien Mazarguil ; Lu, > Wenzhuo ; Wu, Jingjing ; > Iremonger, Bernard ; Awal, Mohammad Abdul > > Subject: [PATCH v3 0/2] app/testpmd implement VXLAN/NVGRE Encap/Decap >=20 > This series adds an easy and maintainable configuration version support f= or > those two actions for 18.08 by using global variables in testpmd to store= the > necessary information for the tunnel encapsulation. Those variables are = used in > conjunction of RTE_FLOW_ACTION_{VXLAN,NVGRE}_ENCAP action to create > easily the action for flows. >=20 > A common way to use it: >=20 > set vxlan ipv4 4 4 4 127.0.0.1 128.0.0.1 11:11:11:11:11:11 22:22:22:22:2= 2:22 > flow create 0 ingress pattern end actions vxlan_encap / queue index 0 / e= nd >=20 > set vxlan ipv6 4 4 4 ::1 ::2222 11:11:11:11:11:11 22:22:22:22:22:22 flo= w create > 0 ingress pattern end actions vxlan_encap / queue index 0 / end >=20 > set nvgre ipv4 4 127.0.0.1 128.0.0.1 11:11:11:11:11:11 22:22:22:22:22:22= flow > create 0 ingress pattern end actions nvgre_encap / queue index 0 / end >=20 > set nvgre ipv6 4 ::1 ::2222 11:11:11:11:11:11 22:22:22:22:22:22 flow cr= eate 0 > ingress pattern end actions nvgre_encap / queue index 0 / end >=20 It might be useful to add the above sample testpmd command lines to section= 4.12 of the doc/guides/testpmd_app_ug/testpmd_funcs.rst file > This also replace the proposal done by Mohammad Abdul Awal [1] which > handles in a more complex way for the same work. >=20 > Note this API has already a modification planned for 18.11 [2] thus those= series > should have a limited life for a single release. >=20 > [1] https://dpdk.org/ml/archives/dev/2018-May/101403.html > [2] https://dpdk.org/ml/archives/dev/2018-June/103485.html >=20 > Changes in v3: >=20 > - support VLAN in the outer encapsulation. > - fix the documentation with missing arguments. >=20 > Changes in v2: >=20 > - add default IPv6 values for NVGRE encapsulation. > - replace VXLAN to NVGRE in comments concerning NVGRE layer. >=20 > Nelio Laranjeiro (2): > app/testpmd: add VXLAN encap/decap support > app/testpmd: add NVGRE encap/decap support >=20 > app/test-pmd/cmdline.c | 242 ++++++++++++++++++ > app/test-pmd/cmdline_flow.c | 268 ++++++++++++++++++++ > app/test-pmd/testpmd.c | 32 +++ > app/test-pmd/testpmd.h | 32 +++ > doc/guides/testpmd_app_ug/testpmd_funcs.rst | 27 ++ > 5 files changed, 601 insertions(+) >=20 > -- > 2.17.1 Regards, Bernard.