ixgbe: don't check minimum link when direct assigned to virtual machine
authorJacob Keller <jacob.e.keller@intel.com>
Sat, 19 Jul 2014 07:17:17 +0000 (07:17 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 24 Jul 2014 09:41:38 +0000 (02:41 -0700)
commitcaafb95d6952c4c977c1b9ddf32bb56bfcda8059
tree8e39c1b9e841834e752475bae6e9e74609a4cbed
parent8818970d8d361e358dd61e5d5774e67794cde791
ixgbe: don't check minimum link when direct assigned to virtual machine

This patch prevents the display of the minimum link qualification check
if we might be in a virtual machine. This check is incorrect and
misleading in this case, since we actually don't really know what the
available bandwidth is. To do so, we simply check whether each function
on the bus matches our device id. If it doesn't the most likely scenario
is that we're directly assigned to a virtual machine.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c