diff options
author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2008-11-27 03:23:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-27 03:23:12 -0500 |
commit | d276016cf990f492cb33a1ff61d789730b3f0d6d (patch) | |
tree | e3f15400eff2c4e38449cbf7f1e3a6db8eff79b6 /drivers | |
parent | b30c4d8f8210bc4ea92942ab786407ec2d780549 (diff) |
ixgb: cleanup link up/down messages
The system log messages created on a link status change need to follow a
specific format to work with tools some customers use. This also makes
the messages consistant with other Intel driver link messages.
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index a04e3892ddf4..820a92cc7f62 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -1110,8 +1110,15 @@ ixgb_watchdog(unsigned long data) | |||
1110 | 1110 | ||
1111 | if (adapter->hw.link_up) { | 1111 | if (adapter->hw.link_up) { |
1112 | if (!netif_carrier_ok(netdev)) { | 1112 | if (!netif_carrier_ok(netdev)) { |
1113 | DPRINTK(LINK, INFO, | 1113 | printk(KERN_INFO "ixgb: %s NIC Link is Up 10 Gbps " |
1114 | "NIC Link is Up 10000 Mbps Full Duplex\n"); | 1114 | "Full Duplex, Flow Control: %s\n", |
1115 | netdev->name, | ||
1116 | (adapter->hw.fc.type == ixgb_fc_full) ? | ||
1117 | "RX/TX" : | ||
1118 | ((adapter->hw.fc.type == ixgb_fc_rx_pause) ? | ||
1119 | "RX" : | ||
1120 | ((adapter->hw.fc.type == ixgb_fc_tx_pause) ? | ||
1121 | "TX" : "None"))); | ||
1115 | adapter->link_speed = 10000; | 1122 | adapter->link_speed = 10000; |
1116 | adapter->link_duplex = FULL_DUPLEX; | 1123 | adapter->link_duplex = FULL_DUPLEX; |
1117 | netif_carrier_on(netdev); | 1124 | netif_carrier_on(netdev); |
@@ -1121,7 +1128,8 @@ ixgb_watchdog(unsigned long data) | |||
1121 | if (netif_carrier_ok(netdev)) { | 1128 | if (netif_carrier_ok(netdev)) { |
1122 | adapter->link_speed = 0; | 1129 | adapter->link_speed = 0; |
1123 | adapter->link_duplex = 0; | 1130 | adapter->link_duplex = 0; |
1124 | DPRINTK(LINK, INFO, "NIC Link is Down\n"); | 1131 | printk(KERN_INFO "ixgb: %s NIC Link is Down\n", |
1132 | netdev->name); | ||
1125 | netif_carrier_off(netdev); | 1133 | netif_carrier_off(netdev); |
1126 | netif_stop_queue(netdev); | 1134 | netif_stop_queue(netdev); |
1127 | 1135 | ||