]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit26c02749936f064abf771a0f5f49b280fcfd8b66
treeb0a59eef832471044846a30f9a6d00f7c42ca668
parent3aa4266405a6c2e03eb0ff12d7c573d3d903da4c
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