]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Do not allow PF to add VLVF entry unless it actually needs it
authorAlexander Duyck <aduyck@mirantis.com>
Thu, 7 Jan 2016 06:48:44 +0000 (22:48 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 4 Apr 2016 20:01:35 +0000 (13:01 -0700)
commit72c5e81789fe099624e0b8916f51b2a26569fa1c
tree4a0395f51c96a89a3f61ec0a715ced5c948bfb4c
parentd954fd1ab0224b55cd4fd121c945907ff65e78f0
ixgbe: Do not allow PF to add VLVF entry unless it actually needs it

While doing the work on igb I realized there were a few cases where we were
still adding VLANs to the VLVF entries for the PF when they were not
needed.  This patch cleans that up so that the only time we add a PF entry
to the VLVF is either for VLAN 0 or if the PF has requested a VLAN that a VF
is already using.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c