]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Relocate the TC match on ip tos offload code section
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 6 Jun 2017 17:13:08 +0000 (20:13 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 22 Jun 2017 11:30:13 +0000 (14:30 +0300)
commit8c387b29b20bcce548d0b40607d411e27998707e
treef8a1994b3b669c98cca3061da05c424f54f26947
parent15d956bc71ab8bd42e9b8ada6f04d20ae627e00e
net/mlx5e: Relocate the TC match on ip tos offload code section

The code section for offloading matches on ip tos (L3) should come
before and not after the one that deals with tcp/udp (L4) matches.

Otherwise, we might come up with wrong min-inline requirement, when
one attempts to match on both L3 and L4.

Fixes: 2b8e50c45eeb ('net/mlx5e: Offload TC matching on ip tos / traffic-class')
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