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)
commit1f97a5265f1ba990c8ac200fb1e31db4f6ff5bea
treef8a1994b3b669c98cca3061da05c424f54f26947
parentaccd58833237d4ad835f7f176303ac2b582704e3
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: fd7da28b280d ('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