Hi Eli

I review your patches and try to test it.
$ tc filter add dev enp130s0f0  protocol ip prio 1 root flower dst_ip
11.12.13.14 skip_sw action mirred egress redirect dev enp130s0f1
or
$ tc filter add dev enp130s0f0  protocol ip prio 1 parent ffff: flower
dst_ip 11.12.13.14 skip_sw action mirred egress redirect dev
enp130s0f1

TC can't install the rules above. The error message:
mlx5_core: devices are both uplink, can't offload forwarding.

So how can I install hairpin rules between uplink and uplink forwarding ?

The test environment
kernel 5.8.0-rc1+, the last commit id:69119673bd50b176ded34032fadd41530fb5af21
NIC MCX512A-ACA_Ax
FW 16.27.2008
enp130s0f0、enp130s0f1 are uplink rep.

https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=249ccc3c95bd1bca17406b5b3d0474fd67220931
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=613f53fe09a27f928a7d05132e1a74b5136e8f04
-- 
Best regards, Tonghao

Reply via email to