[v3,0/2] generic copy rte flow action support
Message ID | 20210113033854.11827-1-akozyrev@nvidia.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E6FF8A04B5; Wed, 13 Jan 2021 04:39:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74F74140DAA; Wed, 13 Jan 2021 04:39:01 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by mails.dpdk.org (Postfix) with ESMTP id 6C653140DA7 for <dev@dpdk.org>; Wed, 13 Jan 2021 04:39:00 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from akozyrev@nvidia.com) with SMTP; 13 Jan 2021 05:38:56 +0200 Received: from nvidia.com (pegasus02.mtr.labs.mlnx [10.210.16.122]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 10D3cuu7005355; Wed, 13 Jan 2021 05:38:56 +0200 From: Alexander Kozyrev <akozyrev@nvidia.com> To: dev@dpdk.org Cc: viacheslavo@nvidia.com, orika@nvidia.com, thomas@monjalon.net, ferruh.yigit@intel.com, andrew.rybchenko@oktetlabs.ru Date: Wed, 13 Jan 2021 03:38:52 +0000 Message-Id: <20210113033854.11827-1-akozyrev@nvidia.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20210112050110.1987-1-akozyrev@nvidia.com> References: <20210112050110.1987-1-akozyrev@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 0/2] generic copy rte flow action support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Message
Alexander Kozyrev
Jan. 13, 2021, 3:38 a.m. UTC
Implement a generic copy rte flow API as described in RFC: http://patches.dpdk.org/patch/85384/ This API allows copying a specified number of bits from a source header field to a destination header field. Tag, mark or metadata can also be used as a source/destination to allow saving/overwriting an arbitrary header field with a user-specified value. Outermost/innermost packet fields (and Tag array elements) are accessible via the level parameter to facilitate the modification of encapsulated packet header fields. The offset parameter provides the flexibility to copy/set any part of a packet starting the specified packet header field. --- v1: https://patchwork.dpdk.org/patch/86173/ v2: https://patchwork.dpdk.org/cover/86369/ Added testpmd support. v3: Made dst_type and src_type only mandatory parameters. Alexander Kozyrev (2): ethdev: introduce generic copy rte flow action app/testpmd: add support for generic copy rte flow action app/test-pmd/cmdline_flow.c | 167 +++++++++++++++++++++++++ doc/guides/prog_guide/rte_flow.rst | 50 ++++++++ doc/guides/rel_notes/release_21_02.rst | 5 + lib/librte_ethdev/rte_flow.c | 1 + lib/librte_ethdev/rte_flow.h | 59 +++++++++ 5 files changed, 282 insertions(+)