]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix vf lookup
authorGreg Rose <gregory.v.rose@intel.com>
Fri, 3 Feb 2012 00:54:13 +0000 (00:54 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 9 Feb 2012 09:25:42 +0000 (01:25 -0800)
commit6e3b0e2b4ad597580573e73d9004e564380c2ca6
tree21249e7c96cfc7e294ad0611e01e0d8f682ac986
parentca4c83ecb78aaae6f6975ed4fe3ecacb06181092
ixgbe: 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 bug exists in 3.2 stable as well as 3.3 release candidates.

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/ixgbe/ixgbe_sriov.c