igb: fix vf lookup
authorGreg Rose <gregory.v.rose@intel.com>
Thu, 2 Feb 2012 23:51:43 +0000 (23:51 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 9 Feb 2012 09:24:29 +0000 (01:24 -0800)
commit0629292117572a60465f38cdedde2f8164c3df0b
treead9cf86ad892b17b2d2f27e0bce7ae9a09faa857
parentb868179c47e9e8eadcd04c1f3105998e528988a3
igb: fix vf lookup

Recent addition of code to find already allocated VFs failed to take
account that systems with 2 or more multi-port SR-IOV capable controllers
might have already enabled VFs.  Make sure that the VFs the function is
finding are actually subordinate to the particular instance of the adapter
that is looking for them and not subordinate to some device that has
previously enabled SR-IOV.

This is applicable to 3.2+ kernels.

CC: stable@vger.kernel.org
Reported-by: David Ahern <daahern@cisco.com>
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Robert E Garrett <robertX.e.garrett@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c
This page took 0.030457 seconds and 5 git commands to generate.