]> git.baikalelectronics.ru Git - kernel.git/commit
ice: remove VLAN representor specific ops
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Mon, 25 Apr 2022 06:27:56 +0000 (08:27 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 8 Jun 2022 15:54:14 +0000 (08:54 -0700)
commit99b964a90049c955f83f1c4df3fa7c1de7fa1f06
tree9ef85d02353f40524a87b796ee445c5fa0f4b025
parent4c4fc7e93287459af3d3279b5a3368ae3c9930e7
ice: remove VLAN representor specific ops

In switchdev mode VF VLAN caps will not be set there is no need
to have specific VLAN ops for representor that only returns not
supported error.

As VLAN configuration commands will be blocked, the VF driver
can't disable VLAN stripping at initialization. It leads to the
situation when VLAN stripping on VF VSI is on, but in kernel it
is off. To prevent this, disable VLAN stripping in VSI
initialization. It doesn't break other usecases, because it is set
according to kernel settings.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_virtchnl.c