From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20088.outbound.protection.outlook.com [40.107.2.88]) by dpdk.org (Postfix) with ESMTP id 19D9A7CEB for ; Sat, 29 Sep 2018 22:08:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I0tcArU5QOz/1jEbaqghp4C8Nd3yjZ1r0qnk4rkVG0c=; b=H8xY3IZUKkDDUUT3qXRFfAqWcRYszqhHzRtMiT2FGMx8iCNF1A0k34nDbnZCiI8iRAu5D2FTnXd6Mpk9asTo33+mHBcBoR+1SV2GxbmOTGOz55hrgFVWaJafLNUSgU++eiIq+5IRNXtCBTgr31RodSUND/mAenLImpcpzIYeEqg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; Received: from mellanox.com (37.142.13.130) by AM4PR05MB3427.eurprd05.prod.outlook.com (2603:10a6:205:6::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.23; Sat, 29 Sep 2018 20:07:58 +0000 From: Ori Kam To: wenzhuo.lu@intel.com, jingjing.wu@intel.com, bernard.iremonger@intel.com, arybchenko@solarflare.com, ferruh.yigit@intel.com, stephen@networkplumber.org, adrien.mazarguil@6wind.com Cc: dev@dpdk.org, dekelp@mellanox.com, thomas@monjalon.net, nelio.laranjeiro@6wind.com, yskoh@mellanox.com, orika@mellanox.com, shahafs@mellanox.com Date: Sat, 29 Sep 2018 20:07:18 +0000 Message-Id: <1538251641-91511-1-git-send-email-orika@mellanox.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: HE1PR05CA0381.eurprd05.prod.outlook.com (2603:10a6:7:94::40) To AM4PR05MB3427.eurprd05.prod.outlook.com (2603:10a6:205:6::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 036371d0-f10f-40dc-c88d-08d6264741b1 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM4PR05MB3427; X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3427; 3:SvE7Y0G+QWMqx7zx0suIqSWsJ72IY0DC1Mcg/JiBHiwffeMJSUr/VV2BYtXKnJIs/mRZsVR8RA7fvTbe0pNUA5h/6KGi07rx07trSx/TiUMMyJO5t4DmvhpnGDfnyocJNtTjUmkIz5u5BBojq0/NNIn5Olcb5QlR78kGp6DoYEnpD4QlW98+fHKx6ZsOOPodJ5kbGzZNiAQLJDorrUVsBeP2axrM7RurdsyY56SfX8PWDOEGYQFPl6jjJOXsLS9s; 25:2VMQpk2c/h625JcvDEm4rcBOoX2PoX+Do0EnUm5yzFpmRBcCDml2JKzu0GFKlYwpw2trGbh4JjQWrAi1sXs5HFtjy3ui5+NJGqsBRoyJJqyQIGbwPy+NWDj7yP/a2AWbt1w7gr1y7ZrSEwvL7/a7KpFmm/cIY+mJdHJtBkEP3sQg6xqlSpLL9AHFDaZTexu75PcUuA9KUWfBenA5YIblQDJLR2XsTcTy66mIZ9Q7GILttBRrPCREX9iGUV8ZvS0b944v2WpFPcP1R17epIUcpZbx0rw4Nmz8l2lPEyRwkSCPEnf7Ed6sryQejPYBsEgDbyuJgDnbHd3KYpf+gHywWQ==; 31:0bxLEfR/twBbEWEruO+0R/eMYqIn1Eg3dMPmxT4jvaZBqo08+SC3U597IE9Sa8FQp5BTRH1jq36b6LTCpA87TXTfUDiIu5FjskAY3oFsg12mCGQk1k3ZoeRxjoMgncfgVtzJhC9sK0C4VV1RIpkFfUrHPz1B9mn/69Hmwdo/uf+im7Lf2nmE8qfKaLM77PAqgqY9Defg35Ic0Ve8XIHpcUdslvLPKAM9y+z8EGcJfU0= X-MS-TrafficTypeDiagnostic: AM4PR05MB3427: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3427; 20:95Cu+Yob7RsIYxagoT2Xtzs1yZ+9Rvy84KG+2wgWIrkii5IQwlNrYCe+SFh6VQ8ZTytRlxQnZQjTAxUFjn7sJSSqho4YMknvl97QCFfu3/nviRo3CWplQDstbeEtr6mDQ/S6RFYqB2dygTjibKu+24AhUgbtcVubUjy0ei/IIPMVPgEJVkq3jgU130XGHEfWaxC3EmFpvVbkoV++DAChQ0142kr+QIqGsTLGmG5YJPJ1A1b+D+d4XZ8fUaQnOcHnRkEQrHPIkdF4wFah3WxPUhPc1pnEfglEUt/oU5sDM9dUy3JssZhnb/USn5i8aKlR1saw/HmICrrhwkmHFkg9eX6WorpJILw+rIIZfcE+UXjcTlAp3MkHRF8IZXdW8427vBzmgw8abwqN0OpMEjuciorUBLgWN2sEwyWW0mMVqKe3Flo88OsKrFRqMMBFfPAmgtXldBGHHDRlCn/T4eHIvmDQQ2qI+oBQ95menzNIB0lK8qI3JoB68XhHZmsIaqcK; 4:w2uzbbGhBFBNFt4E+upvVkiWRVIPivAsTeuLMVbykPOxS0pica9xD0I43nekEv6pJRnxxINF/yRwqbZ4wL0tiV3zQQmpzI70WwzMI0xqYc/d5zrQn6vC8GjxLrbkeI6ekkifHIvb73pceWj2Q7mYOHqeQyDOkIHp14xLNPUoAxuDWDYPiuTYqWLl7XzES5PAA5UXIKhRGInxKlVF1XjhyFQhCvtmLRJx6FulqV9LvjOzOSNEKa9hhCPaTzE9L1W5tnTsNa8PsJfVY7GYiDM0qg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201708071742011)(7699051); SRVR:AM4PR05MB3427; BCL:0; PCL:0; RULEID:; SRVR:AM4PR05MB3427; X-Forefront-PRVS: 0810818DA0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(396003)(376002)(39860400002)(136003)(199004)(189003)(53936002)(7696005)(966005)(105586002)(106356001)(4326008)(107886003)(2906002)(68736007)(478600001)(66066001)(47776003)(21086003)(7416002)(36756003)(48376002)(50466002)(8886007)(33026002)(316002)(4720700003)(6666003)(6116002)(3846002)(97736004)(5660300001)(7736002)(305945005)(6306002)(55016002)(25786009)(69596002)(16586007)(476003)(2616005)(956004)(16526019)(186003)(14444005)(81156014)(51416003)(81166006)(386003)(52116002)(486006)(4006002)(8676002)(86362001)(34290500001)(26005)(8936002)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3427; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR05MB3427; 23:ecsg6Yzt/YK+DQqye2kN6xfx4lMaEqxdnHZPED/4I?= =?us-ascii?Q?YcTsP2mfx816FHS4egRyr2Op4F1zk8Z6jTj3jn3xwNTh5z3FmRrWTGmbaOYa?= =?us-ascii?Q?16iqpw1j7qPcoYE0OGetdLQ4SLLf4Rm5tkpCKmifNLHLL3VdP7wOXMIGpq4L?= =?us-ascii?Q?yLD0ahWGbblHOeiPtE5Xbuloor5pS6nRSlz7BWQJoA8nMEPSFZ7BeCguR9BB?= =?us-ascii?Q?q3lSWmdKkhjbznm5pAgSX8I4ZTchHeH++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nCfaZgncMJk3MoBmWt9U+OSqaPD+6pgvIEwhssErnWnN9wxz5hbOHsN9aoMfegG+izgApsQ==; 5:G4c9Dex+JsNIk37Ir5MVFQgkRpmg3L4QjvYkbUEGf3eY7okj5Saoi3XznKHoJogwwKwtE5Dgyujzs5UDFD9tdj410nQwBTf7HSWFQyPwu865Yz7WTDEo6JS7lmjJIbWeTj4YUsT7zuAo+hibdUxhMm4pu4fkrCKK5nsa8qBjSu8=; 7:askcw+J+Kh1pZBMA8OyBBsVAoQIZPUArpUZ3BukhxGuwqxTtS9/b5Ehamt6wpcvb45NKuJwt1oFC2j5IOGdhPNoAvxyjU1mK78t9Q7nQIbgYMImKs0cZ3WwEvfY7DSmwXFDCXXi4IdBF+UimKaCLO1Y/l58gn3MEHhRdibdzrvZjCwkMbFCn973pzGrTQ4CJCi8lbkxjVptKtULznMRWqJ7zbRmF3c8h5OBdpuDra9bsTFOgFeEdWn0PSojjttAd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2018 20:07:58.6184 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 036371d0-f10f-40dc-c88d-08d6264741b1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3427 Subject: [dpdk-dev] [PATCH 0/3] app/testpmd: add l3 encap/decap cmd 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: Sat, 29 Sep 2018 20:08:02 -0000 Currently testpmd have support only for encapsulation and decapsulation for L2 tunnels. This series adds commands for L3 tunnels types, L3 tunnel is a tunnel that the inner packet is missing the L2 part. The encapsulation uses the encap_l3 command in-order to remove the inner l2. For decapsulation since the inner packet is missing the L2 there is a need to supply it to the NIC using the decap_l3. The tunnels are are implemented are: MPLSoGRE and MPLSoUDP while the decap can be used for all L3 tunnels. This series is based on add generic L2/L3 tunnel encapsulation actions [1] [1] https://mails.dpdk.org/archives/dev/2018-September/111781.html Ori Kam (3): app/testpmd: add MPLSoUDP encapsulation app/testpmd: add MPLSoGRE encapsulation app/testpmd: add decap l3 command app/test-pmd/cmdline.c | 434 ++++++++++++++++++++++++++++ app/test-pmd/cmdline_flow.c | 317 ++++++++++++++++++++ app/test-pmd/testpmd.h | 42 +++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 131 +++++++++ 4 files changed, 924 insertions(+) -- 1.8.3.1