summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbevf
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2012-05-23 02:58:40 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-07-21 16:02:56 -0700
commit9297127b9cdd8d30c829ef5fd28b7cc0323a7bcd (patch)
tree1c5c99f9144f9738436c35c5bdad3a98b70d730a /drivers/net/ethernet/intel/ixgbevf
parent99d744875d01d57d832b8dbfc36d9a1990d503b8 (diff)
downloadop-kernel-dev-9297127b9cdd8d30c829ef5fd28b7cc0323a7bcd.zip
op-kernel-dev-9297127b9cdd8d30c829ef5fd28b7cc0323a7bcd.tar.gz
ixgbe: Change how we check for pre-existing and assigned VFs
This patch does two things. First it drops the unnecessary work of searching for enabled VFs when we first bring up the adapter and instead just uses pci_num_vf to determine how many VFs are enabled on the adapter. The second thing it does is drop the use of vfdev from the vf_data_storage structure. Instead we just search the entire system for a VF that has us as it's PF, and then if that VF is assigned we indicate that the VFs are assigned. This allows us to still check for assigned VFs even if the vfinfo allocation has failed, or vfinfo has been freed. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Acked-by: Greg Rose <gregory.v.rose@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>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud