From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 83F311AFF for ; Mon, 24 Sep 2018 10:33:28 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us3.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 747019800ED; Mon, 24 Sep 2018 08:33:27 +0000 (UTC) Received: from [192.168.38.17] (91.220.146.112) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 24 Sep 2018 01:33:23 -0700 To: Rahul Lakkireddy , CC: , References: <1537777765-16798-1-git-send-email-rahul.lakkireddy@chelsio.com> From: Andrew Rybchenko Message-ID: <569a7ac3-b725-0607-c3c7-4a8656e3d687@solarflare.com> Date: Mon, 24 Sep 2018 11:32:32 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <1537777765-16798-1-git-send-email-rahul.lakkireddy@chelsio.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: ru X-Originating-IP: [91.220.146.112] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ocex03.SolarFlarecom.com (10.20.40.36) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24114.005 X-TM-AS-Result: No-4.775300-4.000000-10 X-TMASE-MatchedRID: 5+1rHnqhWUQOwH4pD14DsPHkpkyUphL9WjWsWQUWzVoNmPMcsvd5FuDp 1KSIzrhhNUJhnJeM5RPTEb/m+e3dBZtZ4geyx4cZsgYw1+LBrk301irNvag5a5soi2XrUn/JyeM tMD9QOgADpAZ2/B/Blg1fA1QHegDv3QfwsVk0UbsIoUKaF27lxaRvWaS3+v2Yf6oQnFQCkFNX8d 1klmwoZdTD5Y+iuq04ImdumGnmqTKi40Tm1AMPbUZhD7GR1RgiAN5DxxpLMY+/3bZ/Fy8b5aKAQ fLsnhLrKWSt4DmvbhpicKLmK2TeKmsPn5C6nWpTnqg/VrSZEiM= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--4.775300-4.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24114.005 X-MDID: 1537778008-B7Xx3g4yJc6D Subject: Re: [dpdk-dev] [PATCH] ethdev: add action to swap source and destination MAC to flow API 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: Mon, 24 Sep 2018 08:33:28 -0000 On 9/24/18 11:29 AM, 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