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)
commite027d1aec4bb49030646d2c186a721f94372d7f2
treebb6e4db798b934e3bd16400a1337b241d5ee8f11
parent81377c8d3563e7aec5c8baaaacacb48034f430a0
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