]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:41:03 +0000 (16:41 -0700)
commitd772370ffd81f49a8e878c289409951e2926fdc3
tree46633c6d7e5bf4d67d4776ad6411f984e9516f9e
parent3b26eee26fedd4b9907d634959d53af9ec8af734
ixgbe: Do not allow PF to add VLVF entry unless it actually needs it

Orabug: 23177316

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>
(cherry picked from commit 18be4fce00fef206dc6f104a6a258b193e9871cf)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c