net/mlx5e: Properly order min inline mode setup while parsing TC matches
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 5 Apr 2018 12:33:52 +0000 (15:33 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 14 May 2018 22:10:21 +0000 (15:10 -0700)
commit547829004c98941f73d010c87c2111e29a6c03ae
tree1254d0a30a74f940d0a4eda7b99c80a21d624aca
parent1cab1cd74bee68aea786e075e979921f686f88a2
net/mlx5e: Properly order min inline mode setup while parsing TC matches

Set the initial value to none instead of L2, and set to L2
where the previous initial value was assumed. Make sure to
parse L2 matches before L3 matches and L3 before L4.

This is a pre-step to get the match level for more purposes
other than the validating the needed vs. actual inline level.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c