net/mlx5: Report PCIe link properties with pcie_print_link_status()
[muen/linux.git] / drivers / net / ethernet / mellanox / mlx5 / core / main.c
index 2ef641c91c267ceec1cacb744f492ef2a1ff8dc0..622f02d34aaea8d94b3df5ec4c3bbb095a035d42 100644 (file)
@@ -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
         */