From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0077.outbound.protection.outlook.com [104.47.0.77]) by dpdk.org (Postfix) with ESMTP id C63FC2C28 for ; Sun, 7 Oct 2018 16:41:52 +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=kXK+td2KCA6C8rLfx7CivyP1pqf6NFk50gW8DrOAhd8=; b=eOmUeIDqNjIinBce41/+Bw7b2WGVys72UQfHlnPHp250hv6lcZMI+y2mjM4JwWBcWQZTfsyRAxmZTqSSXiyPIHi2e811iFGhJgHyk69bs14M8HYLtgsQWj+YfXbp+HH+40i3FvoPnBUArH14Fa71z0xQNMf6sWAbSr8HKg/U8WQ= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.187.142) by AM4PR05MB3427.eurprd05.prod.outlook.com (10.171.187.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.27; Sun, 7 Oct 2018 14:41:50 +0000 Received: from AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::fdeb:3890:f0f0:2202]) by AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::fdeb:3890:f0f0:2202%4]) with mapi id 15.20.1207.024; Sun, 7 Oct 2018 14:41:50 +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 CC: "dev@dpdk.org" , Dekel Peled , Thomas Monjalon , =?iso-8859-1?Q?N=E9lio_Laranjeiro?= , Yongseok Koh , Ori Kam , Shahaf Shuler Thread-Topic: [PATCH v2 0/3] app/testpmd: add l3 encap/decap cmd Thread-Index: AQHUXkvh1hBN4c9HB0O4iIGJ1AjCnQ== Date: Sun, 7 Oct 2018 14:41:50 +0000 Message-ID: <1538923293-127516-1-git-send-email-orika@mellanox.com> References: <1538251641-91511-1-git-send-email-orika@mellanox.com> In-Reply-To: <1538251641-91511-1-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR08CA0054.eurprd08.prod.outlook.com (2603:10a6:7:2a::25) To AM4PR05MB3425.eurprd05.prod.outlook.com (2603:10a6:205:6::14) authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM4PR05MB3427; 6:bbNKCM66x+J/gvloa0dojbr6zZZHYdgbR00DbnKhogTyxguj3mE9Jucj0wyY7mZddekZEWyCJ/P9Zim2t8aFOwVXWLV2y5U3D+eGqaTt7j7p8kDwKU+NW7t4dHmxFUul/MnfvssungSbTik4gGlrSllLk5NZ257xt+0Os8Bin/fi5Qx8Te9XhFMZu+rP/IAUerhFT3n64JTSykDj/X+rK1g3ABjtSnCBlH6JkEzv8w+qWqSx62atF8M+TtERSzZM8s3SsfYLQrlJoy7xaonPbhGZMRrvWjKIsES4LpoY7hRJxYgIa2/nmw2B0RZGo3qI8b8ckn8yKSgIQqcKH4efumtk1lt/tRPISW5OhiWc+0Jc7hiBPuAIIZPItCn64YX7EvsJrtJ4XS6qoPg6fpJViIe4uLcLbA7gYuQKwipY1fs5c9D8Mj43g5LYU8qyt/9rQktgWlmX9c4Ofc+5trfp6Q==; 5:xfXp3pG3fa74GLh9kE1qtPOOgDdPum+nGgxfgAiGTy8UCQ0eZezskYpeFHv7DiScsusu7MwMgoQwZ17Z3k+7/MJ7zBayaw2KXhnMIQNfds4h2uCna9/3FLMZWyd0fuG4Lm2kNEBLhHCGSJjciV7ykaAECFrxaKHpdZZFnnF0EmE=; 7:g0QzGHS/O4pJqwQUTRHf6cJfg5r/fTNSYY1DTguvWJmU8Nd+9WHw1/RcDGtFQSrzHA1J+jNWMTiLpqNhxDMIaV2ibX56GpRSENgG3kIKP7EJdLGWUMLbRh5zaceKCQ2h4BhUQCqTjiG500khWfngpNgnQSiNydvSFtv1wm19arMkr+QDTnIN7fmJdf/omebWnTYFm0YqCVQx5O1IVdZCkFiSezjJ5eiqXhf09B7SX/+Olx+T4YuyQXR/KoTLPCW5 x-ms-office365-filtering-correlation-id: 11d597fa-b23c-4056-8341-08d62c6303e1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM4PR05MB3427; x-ms-traffictypediagnostic: AM4PR05MB3427: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr 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)(3002001)(93006095)(93001095)(10201501046)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051); SRVR:AM4PR05MB3427; BCL:0; PCL:0; RULEID:; SRVR:AM4PR05MB3427; x-forefront-prvs: 0818724663 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(39860400002)(396003)(376002)(346002)(199004)(189003)(5660300001)(7736002)(68736007)(36756003)(66066001)(305945005)(53936002)(2906002)(6306002)(7416002)(6512007)(3846002)(6116002)(2501003)(5250100002)(107886003)(4326008)(966005)(25786009)(14454004)(478600001)(97736004)(71200400001)(6486002)(71190400001)(102836004)(106356001)(105586002)(6436002)(2900100001)(316002)(76176011)(110136005)(8936002)(54906003)(486006)(8676002)(81166006)(26005)(99286004)(2201001)(81156014)(52116002)(86362001)(386003)(446003)(11346002)(476003)(6506007)(2616005)(14444005)(256004)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3427; H:AM4PR05MB3425.eurprd05.prod.outlook.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-antispam-message-info: YTR06FfK3S8SorJf3xv0ZmnAXuNG6+LfpJTRrOCXMvPeqj/Pmfcut/OoyCy5r0puS2D0bYpu4EdS0QutcDeFLojql9oI4JvGIl6NK9hlTIM3JUlKh9/dy9MhNMn3Wj7byZlB7hoS6catim7juHGcilKzZnS7o4L73VvGuu+LcqKaFPxbn7iCmnnVOIGG2nXukTihwJwVym+xVApO5sRsOkqytaHjXvvpCvzuTcp/Lvb9D7O/lszj4B4Ca65WTWiM/s19Ofdq/DISbcg843gQfs82mMItncMyvBFcREO+44W2hXVO7SpWJOshu4AvK7iuSV0SAf+8xoPbk++amVDGS3/DjDuR09p9XmrjBByd010= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11d597fa-b23c-4056-8341-08d62c6303e1 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Oct 2018 14:41:50.4092 (UTC) 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 v2 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: Sun, 07 Oct 2018 14:41:53 -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 v2: * rebase on tip. 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 | 316 ++++++++++++++++++++ app/test-pmd/testpmd.h | 42 +++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 131 +++++++++ 4 files changed, 923 insertions(+) --=20 1.8.3.1