From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20058.outbound.protection.outlook.com [40.107.2.58]) by dpdk.org (Postfix) with ESMTP id B21A01B437 for ; Wed, 26 Sep 2018 23:01:26 +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=bmYZlCmlf2KuDSOdn+dC7zmPCjKa1LCJK8gdeZ7UFjw=; b=v+IrqfiYPFMzLOapgTcyWpiEqpmeih+nmtxBegfNg15HdED/LJSuf+lCV0Dytz9/DeNXplMRk2K4+qaHCSNVEVbIma8+TuI/BbQ4KYTs1c/W/sNq7jiUxNlpsojfUU8tf1O5uU8jxTVlQmRY6Lbe3cgUZexvvhg6fgTOnJK78NU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; Received: from mellanox.com (37.142.13.130) by DB6PR05MB3432.eurprd05.prod.outlook.com (2603:10a6:6:1e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.25; Wed, 26 Sep 2018 21:01:22 +0000 From: Ori Kam To: 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: Wed, 26 Sep 2018 21:00:43 +0000 Message-Id: <1537995646-95260-1-git-send-email-orika@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537116824-191205-1-git-send-email-orika@mellanox.com> References: <1537116824-191205-1-git-send-email-orika@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: AM0PR02CA0018.eurprd02.prod.outlook.com (2603:10a6:208:3e::31) To DB6PR05MB3432.eurprd05.prod.outlook.com (2603:10a6:6:1e::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c0d8f0c4-5e6c-4984-3131-08d623f337fd 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:DB6PR05MB3432; X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3432; 3:IifRjnanR3XYbPVwAZytOx6l2zSraxJT21dWX4MtO9lECvzmc0jtZtNJ+xpH7ZlTa3zs5O0vafuQ0xc8K+lGezGEK2H5qH2H9qx1z0RhT8z/De3zGFP9RPzxk8tzRlS63Pc7sdKrptGvsGzIVsZ1dZHIxvxCpNEq6EE8T2xn+F5iICtRf3DASsZ7rC7rLpzuH1XdBUm4CWb/V/rdaM891BHxL0feybQLQF9pUF75v4Ynm7qtEJM1j7v8byrwji9c; 25:5H7pe6w7ow7idOHWHYojf3aGrfx+JaexA474z2JPRpTLODNolTSbhXK4a1T71Ov/egRfJLm1UpmjlFNBPm3xYURRs/JyYKGVXmar1+sW2SoFcWRUZcrIipDLA5evxd0fUg4/PXFyS/Haxz5StWF4oBsccCHO/zhvqgdaZAyJxKIB4aMPb3BNtcJJOhqH3Ur4GYm8qU0caZ5eNPsHM1mrxcXuCrV5amu0ojfYaTP9t4Q1LioeSsBOEVa4u3AL47o2rsGE1VZtA4yIlHOkkae3Z7+CApuqr8hccS35sEc7DMeRQHaJ6eKQUbOIwZ5nMEnoW8UKZlHsrj9BKBVuyQWMew==; 31:e53vcfPdakHoy78UOforx+r/EvWgjS5vG28wRJCJ18w7aZ0M2XvMIbDpW/CzO434vWZKWazHyWVtG9vCph8XIVtAq5uxQJ6h6X65gOQ5gjXlJShQtusgXohinOSIB4zjv6zQI5D5vhfBUhOHJLZNq3GEeoCprdRiuFS1ivr5YBTdQTShOX2mpzffXXHtPlS5bd+1w6bhOV8eosTqhamNv5vKwZAJk6afRkYfMHzUiVI= X-MS-TrafficTypeDiagnostic: DB6PR05MB3432: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3432; 20:+OJ/DEcnecZo2lVRuXT0CezXx/wzQWfnI/7iiRYf+m7FY3tpotJb4L9UGrx+3/HVD2fsOiVFXLU26Y24NQm/DC6csQJfImAh8ni67Ok/MSBs1P+XZ66ZEWWE90jNk8eg6nocdC65EL10MqA0WzeomMbg/J0Eob4VPh8LlWbqQpcchmF/TzfDRdTSRCtbij+UUiqU9p4Bi1jPVxEuN8pxiIQRVk2Qw31C6DVPpQhtj+HQmG2k3AHGJeQHwomYDsMROall24dA4ilzqduAeymqahjrK6HgayMjVBsBIIWmuFvasRRzrw2jsp8qqnNFpyhaqLcVef2QKnUDWTuEtqgBJ8gAgpiXjJxTaFAdj5pzeCBkPx9v574dZBWgpnCWa4bQyDrUE3ScR7VW6z1jX0QIqR1rqDv/+FtyNCBWJHIbwCPgiZ6yffqCT70/kSOa+79w4mtg4tMm2NeQfSTP19YO8alfW6DqZt24CZF5W9v2B6idrfYowNvqO15q29qaXJby; 4:aouSwHXcvVgVrUBDTKbO6LSenweOvWoIx/Xt9s2VPaApiS5GltLGNaJZl/Bo3zxsM62vDvqpByMlVTH0CHLIdOyU82epvPOwgn2JDDKhmAYhgNBWpWwmXOp47ufwfSQzbdRgLmvYOANMiwVll+QClY+hq3POenOlHedXzqgwmrtT1qduZP3QkTPKqYLa26K5DCZyH4VO9dZXfLjqjA0PYbXS6Vt/9b5xKzIvGxfcC2Km24rXPQbECDFSbQZnI9upFDYGXCfKcP7f/JlKvRbt0g== 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)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201708071742011)(7699051); SRVR:DB6PR05MB3432; BCL:0; PCL:0; RULEID:; SRVR:DB6PR05MB3432; X-Forefront-PRVS: 08076ABC99 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(136003)(346002)(366004)(199004)(189003)(305945005)(50226002)(478600001)(2906002)(16586007)(48376002)(386003)(4720700003)(55016002)(6666003)(6306002)(8936002)(486006)(7696005)(51416003)(53936002)(81156014)(5660300001)(7736002)(8676002)(81166006)(50466002)(52116002)(76176011)(69596002)(8886007)(97736004)(186003)(16526019)(446003)(105586002)(36756003)(34290500001)(107886003)(316002)(25786009)(106356001)(68736007)(66066001)(6116002)(11346002)(956004)(3846002)(86362001)(33026002)(47776003)(26005)(4326008)(476003)(2616005)(21086003)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR05MB3432; 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; DB6PR05MB3432; 23:gBj97CItzVqYbur+wRxDnegF7++eTfYr6oHzqp5qg?= =?us-ascii?Q?bIgQ3dmyyHFjKUrdH6gMekW/LcNf4fxYZ+5DR0AjnhV/E28x5pAnACITUVJB?= =?us-ascii?Q?s/HtaeWA0+6YUS+A5MXNrlOeM0aMdjBn0CiwvvJ/UY7VW4aXBFSjhmfdVUDW?= =?us-ascii?Q?FaPso9A07qKnwi98q/h2RNYSVIk1FLlRx7f4201dSzr2+Eqb7ZyRoC/ZU3zP?= =?us-ascii?Q?Psd5dl/6ZUFoBPJNpe+Ukyyq0QG41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+NkecGkMAHjNXFunM4TP7zu34kzi31FiD/xfqNanyWdar0akwEjKiUOZYmJEgUe0OVjUCPWlqe3NsBSMQVAMGNtl07Aj4qtp2iPuksp+jQ==; 5:0EdFfcAKRxYie9NlH23RuapfV8hpbTaXNHn5uPB+soFNwhZpKPa079JFmW7Nui0zlxOFCVwCe9NwqhebY1nevPpu3ysOIEiClxmt8fIgFgTqU459bt4VH7brRPd1Dvk+afNU8Ek4vgWtpsyVYfJLKv4GdI4SLC5HlAVu48AzNe4=; 7:Ay+t4o6gsF1MOqeHmhUpIg46j9eHiMD0kgRfSFxS9cGy0fNCrneAG/d0+yJuW2esnUfbKB/Pr5rMH6xq1dbj8NtTupgC5HU9iXRU1qSzXo5jM/adWJEw12AaDaf5K1yDby71qeciFzmgWjmVyAjyAdI8IP3AlMS0X3HzDYkUmdfdvyTI4m6ARM9GW3+YZRmCJvZ0wG++GzrKwDszwl33RqD+d7RAyMYWc9n5rwHxU4W6f49uQWsE8AZN+X0XNaWw SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2018 21:01:22.7268 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c0d8f0c4-5e6c-4984-3131-08d623f337fd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB3432 Subject: [dpdk-dev] [PATCH v2 0/3] ethdev: add generic L2/L3 tunnel encapsulation actions 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: Wed, 26 Sep 2018 21:01:27 -0000 This series implement the generic L2/L3 tunnel encapsulation actions and is based on rfc [1] "add generic L2/L3 tunnel encapsulation actions" Currenlty the encap/decap actions only support encapsulation of VXLAN and NVGRE L2 packets (L2 encapsulation is where the inner packet has a valid Ethernet header, while L3 encapsulation is where the inner packet doesn't have the Ethernet header). In addtion the parameter to to the encap action is a list of rte items, this results in 2 extra translation, between the application to the action and from the action to the NIC. This results in negetive impact on the insertion performance. Looking forward there are going to be a need to support many more tunnel encapsulations. For example MPLSoGRE, MPLSoUDP. Adding the new encapsulation will result in duplication of code. For example the code for handling NVGRE and VXLAN are exactly the same, and each new tunnel will have the same exact structure. This series introduce a generic encapsulation for L2 tunnel types, and generic encapsulation for L3 tunnel types. In addtion the new encapsulations commands are using raw buffer inorder to save the converstion time, both for the application and the PMD. [1]https://mails.dpdk.org/archives/dev/2018-August/109944.html Changes in v2: * add missing decap_l3 structure. * fix typo. Ori Kam (3): ethdev: add generic L2/L3 tunnel encapsulation actions app/testpmd: convert testpmd encap commands to new API ethdev: remove vxlan and nvgre encapsulation commands app/test-pmd/cmdline_flow.c | 294 +++++++++++++++++-------------------- app/test-pmd/config.c | 3 + doc/guides/prog_guide/rte_flow.rst | 115 ++++++--------- lib/librte_ethdev/rte_flow.h | 108 ++++++-------- 4 files changed, 227 insertions(+), 293 deletions(-) -- 1.8.3.1