]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Only disable VLAN pruning for the VF when all VLANs are removed
authorBrett Creeley <brett.creeley@intel.com>
Thu, 8 Aug 2019 14:39:30 +0000 (07:39 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 4 Sep 2019 00:17:13 +0000 (17:17 -0700)
commit3380415d4e3ac2ed5e605ad6bfb62f9f47872db2
tree1469278a0d45c3583553594a2dbf3cb821c7c0f2
parent6916a19af403ac396f853e99ef0f210b520e2c71
ice: Only disable VLAN pruning for the VF when all VLANs are removed

Currently if the VF adds a VLAN, VLAN pruning will be enabled for that VSI.
Also, when a VLAN gets deleted it will disable VLAN pruning even if other
VLAN(s) exists for the VF. Fix this by only disabling VLAN pruning on the
VF VSI when removing the last VF (i.e. vf->num_vlan == 0).

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_virtchnl_pf.c