Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195059
b: refs/heads/master
c: f1a051b
h: refs/heads/master
i:
  195057: 075920d
  195055: b466331
v: v3
  • Loading branch information
Dimitris Michailidis authored and David S. Miller committed May 13, 2010
1 parent db8e93b commit b3d2e46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f8f5aafa960883bc3f1b8f85f1cf8199d0c85879
refs/heads/master: f1a051b93090ad920e88748023ab0dea3a6e2ad7
10 changes: 8 additions & 2 deletions trunk/drivers/net/cxgb4/cxgb4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3080,6 +3080,12 @@ static void __devinit print_port_info(struct adapter *adap)

int i;
char buf[80];
const char *spd = "";

if (adap->params.pci.speed == PCI_EXP_LNKSTA_CLS_2_5GB)
spd = " 2.5 GT/s";
else if (adap->params.pci.speed == PCI_EXP_LNKSTA_CLS_5_0GB)
spd = " 5 GT/s";

for_each_port(adap, i) {
struct net_device *dev = adap->port[i];
Expand All @@ -3099,10 +3105,10 @@ static void __devinit print_port_info(struct adapter *adap)
--bufp;
sprintf(bufp, "BASE-%s", base[pi->port_type]);

netdev_info(dev, "Chelsio %s rev %d %s %sNIC PCIe x%d%s\n",
netdev_info(dev, "Chelsio %s rev %d %s %sNIC PCIe x%d%s%s\n",
adap->params.vpd.id, adap->params.rev,
buf, is_offload(adap) ? "R" : "",
adap->params.pci.width,
adap->params.pci.width, spd,
(adap->flags & USING_MSIX) ? " MSI-X" :
(adap->flags & USING_MSI) ? " MSI" : "");
if (adap->name == dev->name)
Expand Down

0 comments on commit b3d2e46

Please sign in to comment.