]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Allow VLAN rewrite of prio field with the same match
authorEli Britstein <elibr@mellanox.com>
Thu, 14 Mar 2019 14:55:09 +0000 (14:55 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 5 Apr 2019 21:10:34 +0000 (14:10 -0700)
commit3965e4aeef7f20d1b35b92f0606d7916c8c56d9e
tree1df79da887b667be62bc51af9b3226ee4577dc02
parentaf3e5ff98c5af56dd896b71a715877a9474de9c8
net/mlx5e: Allow VLAN rewrite of prio field with the same match

Changing the prio field of the VLAN is not supported. With
commit 37410902874c ("net/mlx5e: Support VLAN modify action") zero
value indicated "no-change". Allow the vid rewrite if the prio match
is the same as the prio set value.

Fixes: 37410902874c ("net/mlx5e: Support VLAN modify action")
Signed-off-by: Eli Britstein <elibr@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