]> 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)
commit3b8176d22458b38226fd15331e2c79ea41851044
tree9ef85d02353f40524a87b796ee445c5fa0f4b025
parentf8fc4d9d1febac16809722e93e7187cef93056d7
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