igb: Retain HW VLAN filtering while in promiscuous + VT mode
authorGreg Rose <gregory.v.rose@intel.com>
Tue, 26 Mar 2013 06:19:41 +0000 (06:19 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 25 Apr 2013 03:30:08 +0000 (20:30 -0700)
commit6f3dc319ec5c101e1e927e55d593ad6637648fe5
treee66c72c059624720165ef22f8498fb0b0fcbdcb2
parentc0ba477807191d04f95057a58e08c88ad27b284c
igb: Retain HW VLAN filtering while in promiscuous + VT mode

When using the new bridge FDB interface to allow SR-IOV virtual function
network devices to communicate with SW bridged network devices the
physical function is placed into promiscuous mode and hardware VLAN
filtering is disabled.  This defeats the ability to use VLAN tagging
to isolate user networks.  When the device is in promiscuous mode and
VT mode simultaneously ensure that VLAN hardware filtering remains
enabled.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c