From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2] ethdev: add action to swap source and destination MAC to flow API Date: Tue, 9 Oct 2018 14:05:14 +0100 Message-ID: <57ba7199-1adf-a405-413e-4e2dfb0884d5@intel.com> References: <1537777765-16798-1-git-send-email-rahul.lakkireddy@chelsio.com> <1538840734-10420-1-git-send-email-rahul.lakkireddy@chelsio.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: indranil@chelsio.com, nirranjan@chelsio.com To: Rahul Lakkireddy , dev@dpdk.org Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A80F51B4DC for ; Tue, 9 Oct 2018 15:05:29 +0200 (CEST) In-Reply-To: <1538840734-10420-1-git-send-email-rahul.lakkireddy@chelsio.com> Content-Language: en-US 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 10/6/2018 4:45 PM, Rahul Lakkireddy wrote: > This action is useful for offloading loopback mode, where the hardware > will swap source and destination MAC addresses in the outermost Ethernet > header before looping back the packet. This action can be used in > conjunction with other rewrite actions to achieve MAC layer transparent > NAT where the MAC addresses are swapped before either the source or > destination MAC address is rewritten and NAT is performed. > > Must be used with a valid RTE_FLOW_ITEM_TYPE_ETH flow pattern item. > Otherwise, RTE_FLOW_ERROR_TYPE_ACTION error should be returned by the > PMDs. > > Original work by Shagun Agrawal > > Signed-off-by: Rahul Lakkireddy > Acked-by: Andrew Rybchenko Applied to dpdk-next-net/master, thanks.