]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
igb: fix vf lookup
authorGreg Rose <gregory.v.rose@intel.com>
Thu, 2 Feb 2012 23:51:43 +0000 (23:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Feb 2012 20:46:13 +0000 (12:46 -0800)
commit3039fb27d54ba3ffa564c56ef25d799e756ca3ad
tree562f07330d0be5444158084e97603589f51565e9
parentec00c9c49aef783ec75155431d43df4cd93e24a4
igb: fix vf lookup

commit 0629292117572a60465f38cdedde2f8164c3df0b upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/igb/igb_main.c