From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1F8C5A0A03; Tue, 19 Jan 2021 02:21:45 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F1AB140D60; Tue, 19 Jan 2021 02:21:44 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 1E2E3140D5F for ; Tue, 19 Jan 2021 02:21:42 +0100 (CET) IronPort-SDR: OO4D8dIKinybCYKIUN4MB9ZMaD3Jmdu3rN1BJv53HkIRodB8vbecizA5yEEij6GQ5e4S0KExvb ITjpw3SEdb1Q== X-IronPort-AV: E=McAfee;i="6000,8403,9868"; a="178085609" X-IronPort-AV: E=Sophos;i="5.79,357,1602572400"; d="scan'208";a="178085609" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2021 17:21:42 -0800 IronPort-SDR: sQM39p8b6tvYSEqtIZoyoB34Bb/+yaxQoqH5HaPDZ8GyJASVh/LJ8vl4Bq3PtUH9Yushvc48DH uW62eBiZSpFA== X-IronPort-AV: E=Sophos;i="5.79,357,1602572400"; d="scan'208";a="383737611" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.222.154]) ([10.213.222.154]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2021 17:21:39 -0800 To: Alexander Kozyrev , dev@dpdk.org Cc: viacheslavo@nvidia.com, orika@nvidia.com, thomas@monjalon.net, andrew.rybchenko@oktetlabs.ru, jerinjacobk@gmail.com, ajit.khaparde@broadcom.com References: <20210118161825.31516-1-akozyrev@nvidia.com> <20210118214026.12009-1-akozyrev@nvidia.com> From: Ferruh Yigit Message-ID: Date: Tue, 19 Jan 2021 01:21:36 +0000 MIME-Version: 1.0 In-Reply-To: <20210118214026.12009-1-akozyrev@nvidia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v9 0/2] generic modify rte flow action support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 1/18/2021 9:40 PM, Alexander Kozyrev wrote: > Implement a generic modify rte flow API as described in RFC: > http://patches.dpdk.org/patch/85384/ > > This API allows modifying a destination header field with data from > a source header field. Number of bits to use from the source is specified. > 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. > Alternatively, an immediate value can be provided by a user as a source. > > 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. > > Example of RTE_FLOW_ACTION_TYPE_MODIFY_FIELD implementation for MLX5: > https://patchwork.dpdk.org/patch/86736/ > > --- > v1: https://patchwork.dpdk.org/patch/86173/ > Initial design. > v2: https://patchwork.dpdk.org/cover/86369/ > Added testpmd support. > v3: https://patchwork.dpdk.org/cover/86442/ > Made dst_type, src_type and width only mandatory parameters. > v4: https://patchwork.dpdk.org/cover/86488/ > Renamed action to RTE_FLOW_ACTION_TYPE_COPY_FIELD. > v5: https://patchwork.dpdk.org/cover/86705/ > Redesigned as RTE_FLOW_ACTION_TYPE_MODIFY_FIELD. > v6: https://patchwork.dpdk.org/cover/86715/ > Fixed typos in documentation. > v7: https://patchwork.dpdk.org/cover/86718/ > Fixed warnings. > v8: https://patchwork.dpdk.org/cover/86816/ > Added doxygen comments. > v9: > Minor documentation corrections. > > Alexander Kozyrev (2): > ethdev: introduce generic modify rte flow action > app/testpmd: add support for modify field flow action > Series applied to dpdk-next-net/main, thanks.