]> 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)
commit3bdf436d1fd064683b1285ad16ad90d8629cef97
tree8e39c1b9e841834e752475bae6e9e74609a4cbed
parent1310e9f3edb525f375d823684ca34e9845d81d7b
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