diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2008-11-27 03:21:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-27 03:21:39 -0500 |
commit | 527d47c11149afb5dd59eaca57d5b4d816ac4f20 (patch) | |
tree | 3cfac5a2a421babcc12699e1488bc6d2f68da388 /drivers/net/igb | |
parent | c4106aa88a440430d387e022f2ad6dc1e0d52e98 (diff) |
igb: link up/down messages must follow a specific format
The system log messages created on a link status change need to follow a
specific format to work with tools some customers use.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb')
-rw-r--r-- | drivers/net/igb/igb_main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index d7daf12ab07d..648f5a29d490 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -2324,9 +2324,10 @@ static void igb_watchdog_task(struct work_struct *work) | |||
2324 | &adapter->link_duplex); | 2324 | &adapter->link_duplex); |
2325 | 2325 | ||
2326 | ctrl = rd32(E1000_CTRL); | 2326 | ctrl = rd32(E1000_CTRL); |
2327 | dev_info(&adapter->pdev->dev, | 2327 | /* Links status message must follow this format */ |
2328 | "NIC Link is Up %d Mbps %s, " | 2328 | printk(KERN_INFO "igb: %s NIC Link is Up %d Mbps %s, " |
2329 | "Flow Control: %s\n", | 2329 | "Flow Control: %s\n", |
2330 | netdev->name, | ||
2330 | adapter->link_speed, | 2331 | adapter->link_speed, |
2331 | adapter->link_duplex == FULL_DUPLEX ? | 2332 | adapter->link_duplex == FULL_DUPLEX ? |
2332 | "Full Duplex" : "Half Duplex", | 2333 | "Full Duplex" : "Half Duplex", |
@@ -2361,7 +2362,9 @@ static void igb_watchdog_task(struct work_struct *work) | |||
2361 | if (netif_carrier_ok(netdev)) { | 2362 | if (netif_carrier_ok(netdev)) { |
2362 | adapter->link_speed = 0; | 2363 | adapter->link_speed = 0; |
2363 | adapter->link_duplex = 0; | 2364 | adapter->link_duplex = 0; |
2364 | dev_info(&adapter->pdev->dev, "NIC Link is Down\n"); | 2365 | /* Links status message must follow this format */ |
2366 | printk(KERN_INFO "igb: %s NIC Link is Down\n", | ||
2367 | netdev->name); | ||
2365 | netif_carrier_off(netdev); | 2368 | netif_carrier_off(netdev); |
2366 | netif_tx_stop_all_queues(netdev); | 2369 | netif_tx_stop_all_queues(netdev); |
2367 | if (!test_bit(__IGB_DOWN, &adapter->state)) | 2370 | if (!test_bit(__IGB_DOWN, &adapter->state)) |