diff options
author | Dimitris Michailidis <dm@chelsio.com> | 2010-05-10 11:58:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-13 02:31:16 -0400 |
commit | f1a051b93090ad920e88748023ab0dea3a6e2ad7 (patch) | |
tree | ba8e022276a2bad62fd340c2c640382c2331d711 /drivers/net/cxgb4 | |
parent | f8f5aafa960883bc3f1b8f85f1cf8199d0c85879 (diff) |
cxgb4: report the PCIe link speed
Report the PCIe link speed (2.5 or 5 Gbps).
Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4')
-rw-r--r-- | drivers/net/cxgb4/cxgb4_main.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c index a73cda9c9de..80c3fc5c41c 100644 --- a/drivers/net/cxgb4/cxgb4_main.c +++ b/drivers/net/cxgb4/cxgb4_main.c | |||
@@ -3080,6 +3080,12 @@ static void __devinit print_port_info(struct adapter *adap) | |||
3080 | 3080 | ||
3081 | int i; | 3081 | int i; |
3082 | char buf[80]; | 3082 | char buf[80]; |
3083 | const char *spd = ""; | ||
3084 | |||
3085 | if (adap->params.pci.speed == PCI_EXP_LNKSTA_CLS_2_5GB) | ||
3086 | spd = " 2.5 GT/s"; | ||
3087 | else if (adap->params.pci.speed == PCI_EXP_LNKSTA_CLS_5_0GB) | ||
3088 | spd = " 5 GT/s"; | ||
3083 | 3089 | ||
3084 | for_each_port(adap, i) { | 3090 | for_each_port(adap, i) { |
3085 | struct net_device *dev = adap->port[i]; | 3091 | struct net_device *dev = adap->port[i]; |
@@ -3099,10 +3105,10 @@ static void __devinit print_port_info(struct adapter *adap) | |||
3099 | --bufp; | 3105 | --bufp; |
3100 | sprintf(bufp, "BASE-%s", base[pi->port_type]); | 3106 | sprintf(bufp, "BASE-%s", base[pi->port_type]); |
3101 | 3107 | ||
3102 | netdev_info(dev, "Chelsio %s rev %d %s %sNIC PCIe x%d%s\n", | 3108 | netdev_info(dev, "Chelsio %s rev %d %s %sNIC PCIe x%d%s%s\n", |
3103 | adap->params.vpd.id, adap->params.rev, | 3109 | adap->params.vpd.id, adap->params.rev, |
3104 | buf, is_offload(adap) ? "R" : "", | 3110 | buf, is_offload(adap) ? "R" : "", |
3105 | adap->params.pci.width, | 3111 | adap->params.pci.width, spd, |
3106 | (adap->flags & USING_MSIX) ? " MSI-X" : | 3112 | (adap->flags & USING_MSIX) ? " MSI-X" : |
3107 | (adap->flags & USING_MSI) ? " MSI" : ""); | 3113 | (adap->flags & USING_MSI) ? " MSI" : ""); |
3108 | if (adap->name == dev->name) | 3114 | if (adap->name == dev->name) |