aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2016-03-18 16:11:19 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-04-24 17:57:07 -0700
commitd3dec7c7c03351ae006f698501b523e7b1a38b3d (patch)
tree68756e83025d23d57b4deaf18e92dca5f65c35f4 /drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
parentixgbe: consolidate the configuration of spoof checking (diff)
downloadlinux-dev-d3dec7c7c03351ae006f698501b523e7b1a38b3d.tar.xz
linux-dev-d3dec7c7c03351ae006f698501b523e7b1a38b3d.zip
ixgbe: set VLAN spoof checking unconditionally
Previously the PF driver would only set VLAN spoof checking if the VF had created VLANs. This was done by setting and checking a counter (vlan_count) whenever a VLAN was created by the VF. However it is possible for the vlan_count to be !=0 while there are no VLANs assigned to the VF due to the count incrementing every time a VLAN 0 is added on ifdown/up, which resulted in VLAN spoofing always being set for those VFs. This patch cleans up the logic by unconditionally setting VLAN based on how the VF is configured (via ip link set ethX vf Y spoofchk on/off). This change also resolves an issue where the VLAN spoofing can remain set even after being disabled by the user due to the driver enabling VLAN spoof checking every time a VLAN is added to the VF, but would only allow changes in the setting if vlan_count != 0. Also default_vf_vlan_id and vlans_enabled were removed from the vf_data_storage structure since they are not being used in the driver. Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions