]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Allow TC csum offload if applied together with pedit action
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 10 May 2017 10:59:54 +0000 (13:59 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 23 May 2017 13:23:31 +0000 (16:23 +0300)
commit2f11816fbbd4e5a1ef3526553976fc1136ef1708
treeb0a59eef832471044846a30f9a6d00f7c42ca668
parent9b658b76361bd1375f163f386c28ec67096b1b6f
net/mlx5e: Allow TC csum offload if applied together with pedit action

When offloading header re-writes, the HW re-calculates the relevant L3/L4
checksums. Hence, when upper layers (as done by OVS) ask for TC checksum action
offload together with pedit offload, don't err. This command now works:

tc filter add dev ens1f0 protocol ip parent ffff: prio 20 flower skip_sw
ip_proto tcp dst_port 9001
action pedit ex munge tcp dport set 0x1234 pipe
        action csum tcp

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reported-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c