[PATCH] app/testpmd: fix MAC header in csum forward engine
Andrew Rybchenko
andrew.rybchenko at oktetlabs.ru
Sun Nov 6 10:49:56 CET 2022
On 10/27/22 07:05, lihuisong (C) wrote:
>
> 在 2022/10/26 19:07, Gregory Etelson 写道:
>> MLX5 SR-IOV TX engine will not transmit Ethernet frame
>> if destination MAC address matched local port address. The frame ether
>> looped-back to RX or dropped, depending on the port configuration.
>>
>> Application running over MLX5 SR-IOV port cannot transmit packet
>> polled from RX queue as-is. The packet Ethernet destination address
>> must be changed.
>>
>> The patch adds new run-time configuration parameter to the `csum`
>> forwarding engine to control MAC addresses configuration:
>>
>> testpmd> csum mac-swap on|off <port_id>
>>
>> `mac-swap on` replace MAC addresses.
>> `mac-swap off` keep Ethernet header unchanged.
>>
>> Fixes: 9b4ea7ae77fa ("app/testpmd: revert MAC update in checksum
>> forwarding")
>> Signed-off-by: Gregory Etelson <getelson at nvidia.com>
> Acked-by: Huisong Li <lihuisong at huawei.com>
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list