]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Set the correct pool when VLANs are added in SR-IOV mode.
authorGreg Rose <gregory.v.rose@intel.com>
Fri, 22 Jan 2010 22:45:43 +0000 (22:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jan 2010 09:13:54 +0000 (01:13 -0800)
commitfdff6616867a2e13dc30df82a6c1b2117a9e1cc4
treeef5f64367072f96f50963d1f3d1f8e75f4c10880
parentb2df78edb00d55b3ba19b1839d5a351c011aa9d8
ixgbe: Set the correct pool when VLANs are added in SR-IOV mode.

When VFs are allocated (as indicated by adapter->num_vfs is non-zero) then
the PF pool is no longer zero.  Instead it will be the same as the number
of VFs allocated.  When setting the VLVF entry for the PF we need to use
the correct pool otherwise the PF will get VLAN packets from the wire
because the packet will pass VFTA filtering and the PF has the default
pool, but it will not get VLAN packets from the VFs because it has
not set the correct pool bit in the VLVF entry.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c