]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Don't allow VLAN stripping change when pvid set
authorBrett Creeley <brett.creeley@intel.com>
Sat, 16 May 2020 00:42:13 +0000 (17:42 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 May 2020 00:46:00 +0000 (17:46 -0700)
commitb464c44778902426699a0be8fd5badd36a285fcc
tree5259dcc698fb6aedc4378d73c5cb8f09e5a34ffa
parentdc4aba39bace70bb4fecb13c264a8ba6d483cac4
ice: Don't allow VLAN stripping change when pvid set

Currently, if the PVID is set in the VLAN handling section of the VSI
context the driver still allows VLAN stripping to be enabled/disabled.
VLAN stripping should only be modifiable when the PVID is not set. Fix
this by preventing VLAN stripping modification when PVID is set.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c