aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cxgb4')
-rw-r--r--drivers/net/cxgb4/cxgb4_main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c
index a73cda9c9de8..80c3fc5c41c5 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)