summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorTal Gilboa <talgi@mellanox.com>2018-03-30 09:01:34 -0500
committerBjorn Helgaas <helgaas@kernel.org>2018-04-03 08:58:32 -0500
commit00c6bcb0d60e3f05a533d324ca17b21b6af87fea (patch)
tree652879e07518036f27944e99f30913d13808a5ce /drivers/net
parent190b509c8de2af7c35b8fdcef4e54163a865d680 (diff)
downloadlinux-stable-00c6bcb0d60e3f05a533d324ca17b21b6af87fea.tar.gz
linux-stable-00c6bcb0d60e3f05a533d324ca17b21b6af87fea.tar.bz2
linux-stable-00c6bcb0d60e3f05a533d324ca17b21b6af87fea.zip
net/mlx5: Report PCIe link properties with pcie_print_link_status()
Use pcie_print_link_status() to report PCIe link speed and possible limitations. Signed-off-by: Tal Gilboa <talgi@mellanox.com> [bhelgaas: changelog] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c
index 2ef641c91c26..622f02d34aae 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c
@@ -1043,6 +1043,10 @@ static int mlx5_load_one(struct mlx5_core_dev *dev, struct mlx5_priv *priv,
dev_info(&pdev->dev, "firmware version: %d.%d.%d\n", fw_rev_maj(dev),
fw_rev_min(dev), fw_rev_sub(dev));
+ /* Only PFs hold the relevant PCIe information for this query */
+ if (mlx5_core_is_pf(dev))
+ pcie_print_link_status(dev->pdev);
+
/* on load removing any previous indication of internal error, device is
* up
*/