]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: fix vf lookup
authorGreg Rose <gregory.v.rose@intel.com>
Thu, 2 Feb 2012 23:51:43 +0000 (23:51 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 13:07:26 +0000 (21:07 +0800)
commit39bd651dec244fd9d62fe94710b09554157e6aa1
treeee03c03aa53befe6415d7a4e441b6b66489d1a3f
parent4b69c90ddb2991b6117b4b285a5a7eb5c70fe892
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>
(cherry picked from commit 0629292117572a60465f38cdedde2f8164c3df0b)
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: Joe Jin <joe.jin@oracle.com>
drivers/net/igb/igb_main.c