]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: Add support for VLAN promiscuous with SR-IOV
authorAlexander Duyck <aduyck@mirantis.com>
Tue, 3 Nov 2015 01:10:13 +0000 (17:10 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:40:31 +0000 (16:40 -0700)
commit61afad9613e6c93fae4c0e5c78f9146a8129319e
treea9e7a4ef4911f55395c4b96fa04f468f04546fbf
parentca0dad4699175a914c3faef43964b0cf16f761a7
ixgbe: Add support for VLAN promiscuous with SR-IOV

Orabug: 23177316

This patch adds support for VLAN promiscuous with SR-IOV enabled.

The code prior to this patch was only adding the PF to VLANs that the VF
had added.  As such enabling promiscuous mode would actually not add any
additional VLAN filters so visibility was limited.  This lead to a number
of issues as the bridge and OVS would expect us to accept all VLAN tagged
packets when promiscuous mode was enabled, and instead we would filter out
most if not all depending on the configuration of the PF.

With this patch what we do is set all the bits in the VFTA and all of the
VLVF bits associated with the pool belonging to the PF.  By doing this the
PF is guaranteed to receive all VLAN tagged traffic associated with the RAR
filters assigned to the PF.  In addition we will clean up those same bits
in the event of promiscuous mode being disabled.

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 16369564915a9777217244678ee6160f8f1acac7)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c