]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Always use the match level enum when parsing TC rule match
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 28 Oct 2018 10:27:29 +0000 (12:27 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 19 Nov 2018 22:35:04 +0000 (14:35 -0800)
commit241c6455e0e53bddf9b59efbf1c9d07ac4657199
tree732c66884e44f754d6cccde9c94d0ec6b93aea2d
parent19bc1b3321919701f6b5ab6b0e994db6aa4721db
net/mlx5e: Always use the match level enum when parsing TC rule match

We get the match level (none, l2, l3, l4) while going over the match
dissectors of an offloaded tc rule. When doing this, the match level
enum and the not min inline enum values should be used, fix that.

This worked accidentally b/c both enums have the same numerical values.

Fixes: 7c274b7af2e0 ('net/mlx5e: Get the required HW match level while parsing TC flow matches')
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