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 <getel...@nvidia.com>
Acked-by: Huisong Li <lihuis...@huawei.com>
Applied to dpdk-next-net/main, thanks.