Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122350
b: refs/heads/master
c: 527d47c
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Duyck authored and David S. Miller committed Nov 27, 2008
1 parent 6b16e8c commit 115ea95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: c4106aa88a440430d387e022f2ad6dc1e0d52e98
refs/heads/master: 527d47c11149afb5dd59eaca57d5b4d816ac4f20
9 changes: 6 additions & 3 deletions trunk/drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2324,9 +2324,10 @@ static void igb_watchdog_task(struct work_struct *work)
&adapter->link_duplex);

ctrl = rd32(E1000_CTRL);
dev_info(&adapter->pdev->dev,
"NIC Link is Up %d Mbps %s, "
/* Links status message must follow this format */
printk(KERN_INFO "igb: %s NIC Link is Up %d Mbps %s, "
"Flow Control: %s\n",
netdev->name,
adapter->link_speed,
adapter->link_duplex == FULL_DUPLEX ?
"Full Duplex" : "Half Duplex",
Expand Down Expand Up @@ -2361,7 +2362,9 @@ static void igb_watchdog_task(struct work_struct *work)
if (netif_carrier_ok(netdev)) {
adapter->link_speed = 0;
adapter->link_duplex = 0;
dev_info(&adapter->pdev->dev, "NIC Link is Down\n");
/* Links status message must follow this format */
printk(KERN_INFO "igb: %s NIC Link is Down\n",
netdev->name);
netif_carrier_off(netdev);
netif_tx_stop_all_queues(netdev);
if (!test_bit(__IGB_DOWN, &adapter->state))
Expand Down

0 comments on commit 115ea95

Please sign in to comment.