]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Disallow TC offloading of unsupported match/action combinations
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 11 Jun 2017 18:13:25 +0000 (21:13 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 Sep 2017 04:23:09 +0000 (07:23 +0300)
commit09d75fc1e83abbe8f77257b7eb5146ec5ac5a480
tree67b68ab87f47c28e659d4ae9bba34c48a6d4d4d5
parent31cc9e8158baf336e5562d5a1bb4cb182c1dc579
net/mlx5e: Disallow TC offloading of unsupported match/action combinations

When offloading header re-write, the HW may need to adjust checksums along
the packet. For IP traffic, and a case where we are asked to modify fields in
the IP header, current HW supports that only for TCP and UDP. Enforce it, in
this case fail the offloading attempt for non TCP/UDP packets.

Fixes: ace28bfec3f0 ('net/mlx5e: Add offloading of E-Switch TC pedit (header re-write) actions')
Fixes: 91e3166566e6 ('net/mlx5e: Add offloading of NIC TC pedit (header re-write) actions')
Signed-off-by: Or Gerlitz <ogerlitz@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