[dpdk-dev] [PATCH] ethdev: add action to swap source and destination MAC to flow API

Ferruh Yigit ferruh.yigit at intel.com
Thu Oct 4 17:36:43 CEST 2018


On 9/24/2018 9:32 AM, Andrew Rybchenko wrote:
> 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 <rahul.lakkireddy at chelsio.com>
> 
> Acked-by: Andrew Rybchenko <arybchenko at solarflare.com>

Same here, can you please rebase the patch and keep the ack?


More information about the dev mailing list