]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitbdd66ac0aeed971d1cb42b3aa0d11b0ea3842e09
tree67b68ab87f47c28e659d4ae9bba34c48a6d4d4d5
parentace743214ea205c7d433562c5fa24e33bdfda7ab
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: d7e75a325cb2 ('net/mlx5e: Add offloading of E-Switch TC pedit (header re-write) actions')
Fixes: 2f4fe4cab073 ('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