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)
commit18be4fce00fef206dc6f104a6a258b193e9871cf
tree4a0395f51c96a89a3f61ec0a715ced5c948bfb4c
parent1d96cf9822bf801b1a93a0817e45dd02af5ac0e6
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