]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: call pcie_get_mimimum_link to check if device has enough bandwidth
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 31 Jul 2013 06:53:31 +0000 (06:53 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 31 Jul 2013 07:50:04 +0000 (00:50 -0700)
commit81efcfa3cf937cc47daa39d7c7170885dd688c23
treebb6e4db798b934e3bd16400a1337b241d5ee8f11
parentd4699b0f8449fbcfdd2841454f86a0b4719c0613
ixgbe: call pcie_get_mimimum_link to check if device has enough bandwidth

This patch uses the new pcie_get_minimum_link function to perform a check to
ensure that the adapter is hooked into a slot which is capable of providing the
necessary bandwidth. This check supersedes the original method which only
checked the current pci device. The new method is capable of determining the
minimum speed and link of an entire PCI chain.

-v2-
* update the error message to include encoding loss

CC: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c