]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6edeb192c3ee4753b7dc9a9629202ecd5d8b88cd
tree1254d0a30a74f940d0a4eda7b99c80a21d624aca
parentd4ff12da30fbe7e8cf61d1a97dae2e74a1a3b1be
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