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 2846D239 for ; Sun, 7 Oct 2018 14:58:48 +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=zGpG5GJQQOg+jYequkgPDShsSTVNpbIs/epgT6XmNSo=; b=mIZoyjqNPrizOghCcm8NkBgalqzJWZOyzNqwWwr+NjdKRCrD0ZjTjC6VLuIvSdJ8oZYmT8pqrvdH2NtfKXfjU7P9mJBCmzp0WZweXWBuSCgSlfIPZyqdKp+WHbvr3xjaHfL3PZVtACcD2YG+0aKbUdlF00bVN+VygHkqoxVoq4M= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; Received: from mellanox.com (37.142.13.130) by HE1PR05MB3436.eurprd05.prod.outlook.com (2603:10a6:7:33::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.18; Sun, 7 Oct 2018 12:58:44 +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: Sun, 7 Oct 2018 12:57:31 +0000 Message-Id: <1538917054-68283-1-git-send-email-orika@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537995646-95260-1-git-send-email-orika@mellanox.com> References: <1537995646-95260-1-git-send-email-orika@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: LO2P265CA0119.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:c::35) To HE1PR05MB3436.eurprd05.prod.outlook.com (2603:10a6:7:33::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f99ef04b-2354-4674-8816-08d62c549dcd 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:HE1PR05MB3436; X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB3436; 3:QzIZBo85UdhYqOUliOqTFqmQlukwdpindsMaiG9wG5rVuI9FaoIDAHZcKepylZQYv6mKiB4WuQT3vHDQlDf7ZzSsmY9368p528ldUHAaIA4oEEFRcgh19eFirq3hfVstrMVWm14v+z10y9r6wNXCROgQeFy4+/cog/+4dTVn8ovGVwvFRzJdUh9ka6++ivSGKupMDLnl47JHOkxkRixFoO1xSVLbhgVD25fj+4l8vQPvuQpBeflEXs9y9TXk49s4; 25:+7Zk5AqGx4UMCku7XByWbMv4Lv5eT+j+haAq2H2RNRCK+NRPUV6J5jrjeGjyH2+zF7j/oXN6KWgSOEiGhm3shFUJWTf1tLfutNVzf/y1vTuTiZkOgFX7H6eW2OuyJrUM4L6f/h4HYEdPF8Y279lyYIdr3zMwrowGr4ItahxzETVvpZoJ0rLSKtcCPqd/WKWi+DuTZvTvNv+Oaigz/ABoJ8IbIxfHRGIAYbbyhDmplhytMDbNLpZ6k262YHndT9JJPhasM8OhUwAyWNFd+k+xE5ARK0VlqflCZXlDDlyzkdUL6pRka5U/f/urBoNhBC+0k9pW9cYZZcufAdlthLeymg==; 31:l6K8pdbfMVVcxLErBx2/HcUhMl2W1/R0ALa8+GkGpC+86zaH4mZ0IMQrD49viHGUwQ2syy/5ACjQVuB77j1PeNx+SmnzgjBewGQVMeE7Ll4SppPXbTlBbD/inyM3zPRI2LqPJQ45BJ6692PYaN+8oo2N4Snc/QzY5xoo4JLL5xXzyWtBbROBFAeiBMIZ1m/0mvDNSmUgPgVhYgfSPMjuwrzTWLSprLGHrqXVGLtxNe8= X-MS-TrafficTypeDiagnostic: HE1PR05MB3436: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB3436; 20:MdDH6EDHOLKm89qPxgF3PfrvQTlsBs+jKBu1sR+BGSSK8iEbn2HPTrRtCJHRpx6gcqaTYwtRT0lRlvuzzqsQBd45Elb3u/7F6ZDOtqrf9HO1V7C9xAGR7SMo25U2dkbFr922J7IaZgKiOaTSIvkAedyBOTxGByQo4f83kaZUOnZ61WyQVIV2UwBc9W4SRQhYy9ch5ULQauWTTgE13HeG4CE0GYEE2e5tEmwFpJdeBP2wqUOBPE6SEpgV+t9aiK8t7k9EUQNTjusXtA0PzIkUrcEfit4d3LzDlJ2AH0NElTyRyV3xZyVJakgFRpRKY22KoqiaElKtk+aG4s6bcrO7/4HKSowty/4MTAGfoFtD/0NyeTs1ClIdmj7gb//GPw0IiR/H0m57dYE8PXdRMmaCQ7imdILxa/MuUPLjAX71UC/HH1It34UGLQTT1NufHTiRsCuVVE1o3RrfmT8l56x6bUK/Lhj3x34RCcErwcp+GFNt9Z+s839n0qJPurboZH9G; 4:0sgsIOMyaKAGL32U2S3BXasO+N00Rm/Rr91zZ1TA9oCWoiakMPNkOmUDtsE9lDv7DyWPzqx2mqDPa0elNP964i3F6AQtBjoQ0f5S4hiVEsLujstRfyX0JLk73RVplVUpU64S0NqLuGWHThUSYSpRT4GLNrORHxMZApV7Qx8/uzKCAzoX+m5hMnez1KQGb/Ow7WDHNY248CsM9UV5ZtKMNV1d4nodwtfaH+slBZLjlj1xfKuuNnYDAyBZYbjd8MoxbgPWkPnV9tkYxam3nuSeSw== 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)(10201501046)(93006095)(93001095)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(201708071742011)(7699051)(76991055); SRVR:HE1PR05MB3436; BCL:0; PCL:0; RULEID:; SRVR:HE1PR05MB3436; X-Forefront-PRVS: 0818724663 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(376002)(396003)(136003)(346002)(366004)(39860400002)(199004)(189003)(105586002)(76176011)(2616005)(3846002)(51416003)(7696005)(106356001)(52116002)(6116002)(386003)(55016002)(486006)(476003)(11346002)(446003)(956004)(6306002)(26005)(86362001)(305945005)(21086003)(53936002)(316002)(36756003)(69596002)(16586007)(16526019)(186003)(4743002)(8936002)(81156014)(50226002)(4326008)(478600001)(2906002)(66066001)(8676002)(4720700003)(81166006)(7736002)(6666003)(25786009)(8886007)(50466002)(68736007)(48376002)(107886003)(97736004)(47776003)(33026002)(5660300001)(41533002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR05MB3436; 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; HE1PR05MB3436; 23:QiShZI8rY6MbrBAVwj/qQrn5dEqu2vS4KWpO4P59F?= =?us-ascii?Q?MUfqJpJiBdNVXwefQF0xUWgxi+GiIPgcOmh+RwgnR2wHi6PXERR0nfCWQ0gz?= =?us-ascii?Q?BXU+9UUG1RiPmmo6xKVFrr+zzl5kcVakTN6wVXHmiBTLYykmVavrIb+uCmT5?= =?us-ascii?Q?gIVyyvgVAzKNMOgnpGe3NrbsG1D7Ri7i0BxZKAd6ltzI8Hrlp8y8r7Bok5vH?= =?us-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5tJDTQlCjnfI2wE23iJC/ZGqJ/gWSidekZISA2DLzb5ekZVVnXDROo9TAJyk9BcE1vFDXYXnlIvq/r2mhPFN0aaTA27K0rcJFc0BBx6SeAKl7KS7xwgCdO7q8L2zm4hvUnmc46WOs96tD4QtiD3+lwpEmq3rr5hbCiV0sFr5v8XVv4+RKFI08obLEFVu9vcuAuv64n1Xa74zyUSddx3WO2RrzXfnt8ZK3xEeTcrOIfamQo9MOsK8bM5cA==; 5:7SJ3CVShynw8N9HMBFNBQCMsA8jgGuhjJPBrH52nENUYHBl1LhrS7Jrei5kT3DdUqmdFlq0wRw1lJpcit1sa1r43BPqNp/Y2g6pmHhom0Az3vi26OJwmiRQQZzkKaTzuhjZonWZkNZV4m4u4xzg3oUsTdpXZguao8cIL/pUXdFE=; 7:CXOXEbD26j8cQy8o6L2qBda4gAGpepmq4dGOwh/GIiRf3ckZQJLjVGazcTI+vpmd3zbqqOaTYatKOtrDO79ZZ5C/Ghmm8AzG//Yj0/T4TQ8SBL+bD5wYuuxzy3u8Vv1vma60Opapx0YL3RTjoiGzxeRoacf9kmQHzLP0G5sNvBUQTj2b2G8H3NpPg/S/ekwiKvipd5ScfGuuqDqUM+cce6UeSJoIWfKntCEaO+g2gWx88/0QwGR+5GBGUhNPdZIr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2018 12:58:44.2277 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f99ef04b-2354-4674-8816-08d62c549dcd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB3436 Subject: [dpdk-dev] [PATCH v3 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: Sun, 07 Oct 2018 12:58:48 -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 v3: * rebase on tip. 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 | 292 +++++++++++++++++-------------------- app/test-pmd/config.c | 2 - doc/guides/prog_guide/rte_flow.rst | 115 ++++++--------- lib/librte_ethdev/rte_flow.c | 44 +----- lib/librte_ethdev/rte_flow.h | 108 ++++++-------- 5 files changed, 231 insertions(+), 330 deletions(-) -- 1.8.3.1