From: Andy Gospodarek Date: Wed, 21 Jul 2010 06:40:31 +0000 (+0000) Subject: ixgbe/igb: catch invalid VF settings X-Git-Tag: v2.6.35~25^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bded64a7ff82f6af56426a4ff2483888e5ad5fe9;p=pandora-kernel.git ixgbe/igb: catch invalid VF settings Some ixgbe cards put an invalid VF device ID in the PCIe SR-IOV capability. The ixgbe driver is only valid for PFs or non SR-IOV hardware. It seems that the same problem could occur on igb hardware as well, so if we discover we are trying to initialize a VF in ixbge_probe or igb_probe, print an error and exit. Based on a patch for ixgbe from Chris Wright . Signed-off-by: Andy Gospodarek Cc: Chris Wright Acked-by: Chris Wright Acked-by: Greg Rose Signed-off-by: David S. Miller --- Reading git-diff-tree failed