]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbede8731427eb60686f16b5a9457db2b45c95be1
tree8e39c1b9e841834e752475bae6e9e74609a4cbed
parent537e9dafc4b8a561fd9dc7c800fe9b4dc16a9256
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