diff options
author | Roland Dreier <roland@purestorage.com> | 2014-04-29 04:36:20 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-01 00:12:21 +0400 |
commit | d2e752db6d05374a35dddb2e17864fe310fbcf69 (patch) | |
tree | 43cb815f741bff8a2f26136541a261785aabcbb9 /drivers/net | |
parent | 652f99ead8319941216c64d7f92c8dcdc9b95970 (diff) | |
download | linux-d2e752db6d05374a35dddb2e17864fe310fbcf69.tar.xz |
cxgb4: Decode PCIe Gen3 link speed
Add handling for " 8 GT/s" in print_port_info().
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 6fe58913403a..24e16e3301e0 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c @@ -5870,6 +5870,8 @@ static void print_port_info(const struct net_device *dev) spd = " 2.5 GT/s"; else if (adap->params.pci.speed == PCI_EXP_LNKSTA_CLS_5_0GB) spd = " 5 GT/s"; + else if (adap->params.pci.speed == PCI_EXP_LNKSTA_CLS_8_0GB) + spd = " 8 GT/s"; if (pi->link_cfg.supported & FW_PORT_CAP_SPEED_100M) bufp += sprintf(bufp, "100/"); |