OSDN Git Service

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)
commit1d9c0bfd0f0470c8fb0033999f623d4eec7b1a2c
treed3b4a2a35506258fe2756e9dddd028418ca02c10
parent769162e38b91e1d300752e666260fa6c7b203fbc
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