Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170711
b: refs/heads/master
c: 35c5f8f
h: refs/heads/master
i:
  170709: 09e6a58
  170707: 7c11d18
  170703: 0e340f4
v: v3
  • Loading branch information
Eilon Greenstein authored and David S. Miller committed Oct 15, 2009
1 parent 1457e4d commit 85ac283
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 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: 061bc702f6912b6e45b9aaf1c9bf2f8122406d47
refs/heads/master: 35c5f8fef12a2e4b788aa45ff72206ce4ac8e4b4
14 changes: 13 additions & 1 deletion trunk/drivers/net/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2163,11 +2163,23 @@ static void bnx2x_link_report(struct bnx2x *bp)
}

if (bp->link_vars.link_up) {
u16 line_speed;

if (bp->state == BNX2X_STATE_OPEN)
netif_carrier_on(bp->dev);
printk(KERN_INFO PFX "%s NIC Link is Up, ", bp->dev->name);

printk("%d Mbps ", bp->link_vars.line_speed);
line_speed = bp->link_vars.line_speed;
if (IS_E1HMF(bp)) {
u16 vn_max_rate;

vn_max_rate =
((bp->mf_config & FUNC_MF_CFG_MAX_BW_MASK) >>
FUNC_MF_CFG_MAX_BW_SHIFT) * 100;
if (vn_max_rate < line_speed)
line_speed = vn_max_rate;
}
printk("%d Mbps ", line_speed);

if (bp->link_vars.duplex == DUPLEX_FULL)
printk("full duplex");
Expand Down

0 comments on commit 85ac283

Please sign in to comment.