]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Use VMDq offset to indicate the default pool
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 5 May 2012 05:32:21 +0000 (05:32 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 20 Jul 2012 01:09:49 +0000 (18:09 -0700)
commit7c01e34475a85bdb500aa4ddf84fa22866eb697e
treed3b4a2a35506258fe2756e9dddd028418ca02c10
parent46b10802c1ec90fe486031f33c00636313e2fade
ixgbe: Use VMDq offset to indicate the default pool

This change makes it so that we can use the VMDq ring feature offset value
to determine the default pool instead of using num_vfs.  The reason for
this change is to avoid issues should we fail to allocate vfinfo but have
pre-existing VFs.  What should happen in this case is that num_vfs will go
to 0, but the VMDq offset will contain the location of the first PF pool.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Tested-by: Sibai Li <Sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c