]> 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)
commitf6c05ffa56ff8ff35d4fc932685f78aa2caf793a
tree67b68ab87f47c28e659d4ae9bba34c48a6d4d4d5
parent643daa95b16a4cef266ce761ce2f41f91e65e64e
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: 3a69c7dedbe4 ('net/mlx5e: Add offloading of E-Switch TC pedit (header re-write) actions')
Fixes: dbf787a093bb ('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