nfp: print PCIe link bandwidth on probe
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 25 Apr 2018 04:17:02 +0000 (21:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Apr 2018 18:07:04 +0000 (14:07 -0400)
To aid debugging of performance issues caused by limited PCIe
bandwidth print the PCIe link information on probe.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c

index cd678323bacb49faf4437c9e8cd312bcf09149c1..a0e336bd1d85798bb295bdc1be538bd4efb67e38 100644 (file)
@@ -1330,6 +1330,7 @@ struct nfp_cpp *nfp_cpp_from_nfp6000_pcie(struct pci_dev *pdev)
        /*  Finished with card initialization. */
        dev_info(&pdev->dev,
                 "Netronome Flow Processor NFP4000/NFP6000 PCIe Card Probe\n");
+       pcie_print_link_status(pdev);
 
        nfp = kzalloc(sizeof(*nfp), GFP_KERNEL);
        if (!nfp) {