summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/chelsio
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2018-03-30 22:09:54 +0300
committerBjorn Helgaas <bhelgaas@google.com>2018-05-26 01:29:49 +0300
commitaf125b754e2f09e6061e65db8f4eda0f7730011d (patch)
treec39bae33e09618b3ee0ba9920d598329d2890a48 /drivers/net/ethernet/chelsio
parentcc04a1dd3f4af21d1a2cd3715e7b337b470a693d (diff)
downloadlinux-af125b754e2f09e6061e65db8f4eda0f7730011d.tar.xz
bnxt_en: Report PCIe link properties with pcie_print_link_status()
Previously the driver used pcie_get_minimum_link() to warn when the NIC is in a slot that can't supply as much bandwidth as the NIC could use. pcie_get_minimum_link() can be misleading because it finds the slowest link and the narrowest link (which may be different links) without considering the total bandwidth of each link. For a path with a 16 GT/s x1 link and a 2.5 GT/s x16 link, it returns 2.5 GT/s x1, which corresponds to 250 MB/s of bandwidth, not the true available bandwidth of about 1969 MB/s for a 16 GT/s x1 link. Use pcie_print_link_status() to report PCIe link speed and possible limitations instead of implementing this in the driver itself. This finds the slowest link in the path to the device by computing the total bandwidth of each link and compares that with the capabilities of the device. The dmesg change is: - PCIe: Speed %s Width x%d + %u.%03u Gb/s available PCIe bandwidth (%s x%d link) Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
0 files changed, 0 insertions, 0 deletions