]> git.baikalelectronics.ru Git - kernel.git/commit
igb: enable VLAN stripping for VMs with i350
authorStefan Assmann <sassmann@kpanic.de>
Wed, 11 Dec 2013 22:10:12 +0000 (22:10 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Mar 2014 04:38:54 +0000 (21:38 -0700)
commitfb66b92aae80601c0bc9f35c6dd01485051742b1
tree0cc15090354198781e4da9ea12e65c774a74567e
parentd29056dbb80ca8ee3630cb5d93a3bd1c25c6545c
igb: enable VLAN stripping for VMs with i350

For i350 VLAN stripping for VMs is not enabled in the VMOLR register but in
the DVMOLR register. Making the changes accordingly. It's not necessary to
unset the E1000_VMOLR_STRVLAN bit on i350 as the hardware will simply ignore
it.

Without this change if a VLAN is configured for a VF assigned to a guest
via (i.e.)
ip link set p1p1 vf 0 vlan 10
the VLAN tag will not be stripped from packets going into the VM. Which they
should be because the VM itself is not aware of the VLAN at all.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/e1000_82575.h
drivers/net/ethernet/intel/igb/e1000_regs.h
drivers/net/ethernet/intel/igb/igb_main.c