* [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format
@ 2008-11-27 0:02 Jeff Kirsher
2008-11-27 0:02 ` [NET-NEXT PATCH 2/5] ixgbe: cleanup link up/down messages Jeff Kirsher
` (5 more replies)
0 siblings, 6 replies; 12+ messages in thread
From: Jeff Kirsher @ 2008-11-27 0:02 UTC (permalink / raw)
To: davem; +Cc: netdev, Alexander Duyck, Jeff Kirsher
From: Alexander Duyck <alexander.h.duyck@intel.com>
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>
---
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 ab37ab0..0919a2f 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -2328,9 +2328,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",
@@ -2365,7 +2366,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))
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [NET-NEXT PATCH 2/5] ixgbe: cleanup link up/down messages
2008-11-27 0:02 [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format Jeff Kirsher
@ 2008-11-27 0:02 ` Jeff Kirsher
2008-11-27 8:22 ` David Miller
2008-11-27 0:02 ` [NET-NEXT PATCH 3/5] e1000: " Jeff Kirsher
` (4 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: Jeff Kirsher @ 2008-11-27 0:02 UTC (permalink / raw)
To: davem; +Cc: netdev, Jeff Kirsher
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>
---
drivers/net/ixgbe/ixgbe_main.c | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 15d511c..fbe19ee 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -3456,15 +3456,16 @@ static void ixgbe_watchdog_task(struct work_struct *work)
u32 rmcs = IXGBE_READ_REG(hw, IXGBE_RMCS);
#define FLOW_RX (frctl & IXGBE_FCTRL_RFCE)
#define FLOW_TX (rmcs & IXGBE_RMCS_TFCE_802_3X)
- DPRINTK(LINK, INFO, "NIC Link is Up %s, "
- "Flow Control: %s\n",
- (link_speed == IXGBE_LINK_SPEED_10GB_FULL ?
- "10 Gbps" :
- (link_speed == IXGBE_LINK_SPEED_1GB_FULL ?
- "1 Gbps" : "unknown speed")),
- ((FLOW_RX && FLOW_TX) ? "RX/TX" :
- (FLOW_RX ? "RX" :
- (FLOW_TX ? "TX" : "None"))));
+ printk(KERN_INFO "ixgbe: %s NIC Link is Up %s, "
+ "Flow Control: %s\n",
+ netdev->name,
+ (link_speed == IXGBE_LINK_SPEED_10GB_FULL ?
+ "10 Gbps" :
+ (link_speed == IXGBE_LINK_SPEED_1GB_FULL ?
+ "1 Gbps" : "unknown speed")),
+ ((FLOW_RX && FLOW_TX) ? "RX/TX" :
+ (FLOW_RX ? "RX" :
+ (FLOW_TX ? "TX" : "None"))));
netif_carrier_on(netdev);
netif_tx_wake_all_queues(netdev);
@@ -3476,7 +3477,8 @@ static void ixgbe_watchdog_task(struct work_struct *work)
adapter->link_up = false;
adapter->link_speed = 0;
if (netif_carrier_ok(netdev)) {
- DPRINTK(LINK, INFO, "NIC Link is Down\n");
+ printk(KERN_INFO "ixgbe: %s NIC Link is Down\n",
+ netdev->name);
netif_carrier_off(netdev);
netif_tx_stop_all_queues(netdev);
}
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [NET-NEXT PATCH 3/5] e1000: cleanup link up/down messages
2008-11-27 0:02 [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format Jeff Kirsher
2008-11-27 0:02 ` [NET-NEXT PATCH 2/5] ixgbe: cleanup link up/down messages Jeff Kirsher
@ 2008-11-27 0:02 ` Jeff Kirsher
2008-11-27 8:22 ` David Miller
2008-11-27 0:02 ` [NET-NEXT PATCH 4/5] ixgb: " Jeff Kirsher
` (3 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: Jeff Kirsher @ 2008-11-27 0:02 UTC (permalink / raw)
To: davem; +Cc: netdev, Jeff Kirsher
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>
---
drivers/net/e1000/e1000_main.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 5c098c9..6494d24 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -2524,10 +2524,11 @@ static void e1000_watchdog(unsigned long data)
&adapter->link_duplex);
ctrl = er32(CTRL);
- DPRINTK(LINK, INFO, "NIC Link is Up %d Mbps %s, "
- "Flow Control: %s\n",
- adapter->link_speed,
- adapter->link_duplex == FULL_DUPLEX ?
+ printk(KERN_INFO "e1000: %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",
((ctrl & E1000_CTRL_TFCE) && (ctrl &
E1000_CTRL_RFCE)) ? "RX/TX" : ((ctrl &
@@ -2603,7 +2604,8 @@ static void e1000_watchdog(unsigned long data)
if (netif_carrier_ok(netdev)) {
adapter->link_speed = 0;
adapter->link_duplex = 0;
- DPRINTK(LINK, INFO, "NIC Link is Down\n");
+ printk(KERN_INFO "e1000: %s NIC Link is Down\n",
+ netdev->name);
netif_carrier_off(netdev);
netif_stop_queue(netdev);
mod_timer(&adapter->phy_info_timer, round_jiffies(jiffies + 2 * HZ));
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [NET-NEXT PATCH 4/5] ixgb: cleanup link up/down messages
2008-11-27 0:02 [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format Jeff Kirsher
2008-11-27 0:02 ` [NET-NEXT PATCH 2/5] ixgbe: cleanup link up/down messages Jeff Kirsher
2008-11-27 0:02 ` [NET-NEXT PATCH 3/5] e1000: " Jeff Kirsher
@ 2008-11-27 0:02 ` Jeff Kirsher
2008-11-27 8:23 ` David Miller
2008-11-27 0:03 ` [NET-NEXT PATCH 5/5] e100: " Jeff Kirsher
` (2 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: Jeff Kirsher @ 2008-11-27 0:02 UTC (permalink / raw)
To: davem; +Cc: netdev, Jeff Kirsher
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>
---
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 a04e389..820a92c 100644
--- a/drivers/net/ixgb/ixgb_main.c
+++ b/drivers/net/ixgb/ixgb_main.c
@@ -1110,8 +1110,15 @@ ixgb_watchdog(unsigned long data)
if (adapter->hw.link_up) {
if (!netif_carrier_ok(netdev)) {
- DPRINTK(LINK, INFO,
- "NIC Link is Up 10000 Mbps Full Duplex\n");
+ printk(KERN_INFO "ixgb: %s NIC Link is Up 10 Gbps "
+ "Full Duplex, Flow Control: %s\n",
+ netdev->name,
+ (adapter->hw.fc.type == ixgb_fc_full) ?
+ "RX/TX" :
+ ((adapter->hw.fc.type == ixgb_fc_rx_pause) ?
+ "RX" :
+ ((adapter->hw.fc.type == ixgb_fc_tx_pause) ?
+ "TX" : "None")));
adapter->link_speed = 10000;
adapter->link_duplex = FULL_DUPLEX;
netif_carrier_on(netdev);
@@ -1121,7 +1128,8 @@ ixgb_watchdog(unsigned long data)
if (netif_carrier_ok(netdev)) {
adapter->link_speed = 0;
adapter->link_duplex = 0;
- DPRINTK(LINK, INFO, "NIC Link is Down\n");
+ printk(KERN_INFO "ixgb: %s NIC Link is Down\n",
+ netdev->name);
netif_carrier_off(netdev);
netif_stop_queue(netdev);
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [NET-NEXT PATCH 5/5] e100: cleanup link up/down messages
2008-11-27 0:02 [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format Jeff Kirsher
` (2 preceding siblings ...)
2008-11-27 0:02 ` [NET-NEXT PATCH 4/5] ixgb: " Jeff Kirsher
@ 2008-11-27 0:03 ` Jeff Kirsher
2008-11-27 8:23 ` David Miller
2008-11-27 8:21 ` [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format David Miller
2008-11-27 10:50 ` Andi Kleen
5 siblings, 1 reply; 12+ messages in thread
From: Jeff Kirsher @ 2008-11-27 0:03 UTC (permalink / raw)
To: davem; +Cc: netdev, Jeff Kirsher
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>
---
drivers/net/e100.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/drivers/net/e100.c b/drivers/net/e100.c
index 2001a63..dce7ff2 100644
--- a/drivers/net/e100.c
+++ b/drivers/net/e100.c
@@ -1580,11 +1580,13 @@ static void e100_watchdog(unsigned long data)
mii_ethtool_gset(&nic->mii, &cmd);
if(mii_link_ok(&nic->mii) && !netif_carrier_ok(nic->netdev)) {
- DPRINTK(LINK, INFO, "link up, %sMbps, %s-duplex\n",
- cmd.speed == SPEED_100 ? "100" : "10",
- cmd.duplex == DUPLEX_FULL ? "full" : "half");
+ printk(KERN_INFO "e100: %s NIC Link is Up %s Mbps %s Duplex\n",
+ nic->netdev->name,
+ cmd.speed == SPEED_100 ? "100" : "10",
+ cmd.duplex == DUPLEX_FULL ? "Full" : "Half");
} else if(!mii_link_ok(&nic->mii) && netif_carrier_ok(nic->netdev)) {
- DPRINTK(LINK, INFO, "link down\n");
+ printk(KERN_INFO "e100: %s NIC Link is Down\n",
+ nic->netdev->name);
}
mii_check_link(&nic->mii);
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format
2008-11-27 0:02 [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format Jeff Kirsher
` (3 preceding siblings ...)
2008-11-27 0:03 ` [NET-NEXT PATCH 5/5] e100: " Jeff Kirsher
@ 2008-11-27 8:21 ` David Miller
2008-11-27 10:50 ` Andi Kleen
5 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2008-11-27 8:21 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev, alexander.h.duyck
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed, 26 Nov 2008 16:02:06 -0800
> From: Alexander Duyck <alexander.h.duyck@intel.com>
>
> 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>
Applied.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [NET-NEXT PATCH 2/5] ixgbe: cleanup link up/down messages
2008-11-27 0:02 ` [NET-NEXT PATCH 2/5] ixgbe: cleanup link up/down messages Jeff Kirsher
@ 2008-11-27 8:22 ` David Miller
0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2008-11-27 8:22 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed, 26 Nov 2008 16:02:22 -0800
> 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>
Applied.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [NET-NEXT PATCH 3/5] e1000: cleanup link up/down messages
2008-11-27 0:02 ` [NET-NEXT PATCH 3/5] e1000: " Jeff Kirsher
@ 2008-11-27 8:22 ` David Miller
0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2008-11-27 8:22 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed, 26 Nov 2008 16:02:35 -0800
> 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>
Applied.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [NET-NEXT PATCH 4/5] ixgb: cleanup link up/down messages
2008-11-27 0:02 ` [NET-NEXT PATCH 4/5] ixgb: " Jeff Kirsher
@ 2008-11-27 8:23 ` David Miller
0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2008-11-27 8:23 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed, 26 Nov 2008 16:02:48 -0800
> 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>
Applied.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [NET-NEXT PATCH 5/5] e100: cleanup link up/down messages
2008-11-27 0:03 ` [NET-NEXT PATCH 5/5] e100: " Jeff Kirsher
@ 2008-11-27 8:23 ` David Miller
0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2008-11-27 8:23 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Wed, 26 Nov 2008 16:03:02 -0800
> 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>
Applied.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format
2008-11-27 0:02 [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format Jeff Kirsher
` (4 preceding siblings ...)
2008-11-27 8:21 ` [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format David Miller
@ 2008-11-27 10:50 ` Andi Kleen
2008-11-27 11:34 ` David Miller
5 siblings, 1 reply; 12+ messages in thread
From: Andi Kleen @ 2008-11-27 10:50 UTC (permalink / raw)
To: Jeff Kirsher; +Cc: davem, netdev, Alexander Duyck
Jeff Kirsher <jeffrey.t.kirsher@intel.com> writes:
> From: Alexander Duyck <alexander.h.duyck@intel.com>
>
> The system log messages created on a link status change need to follow a
> specific format to work with tools some customers use.
It would be better to define standard helper functions that output this
format somewhere. Then this could be also used in other drivers.
-Andi
--
ak@linux.intel.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format
2008-11-27 10:50 ` Andi Kleen
@ 2008-11-27 11:34 ` David Miller
0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2008-11-27 11:34 UTC (permalink / raw)
To: andi; +Cc: jeffrey.t.kirsher, netdev, alexander.h.duyck
From: Andi Kleen <andi@firstfloor.org>
Date: Thu, 27 Nov 2008 11:50:45 +0100
> Jeff Kirsher <jeffrey.t.kirsher@intel.com> writes:
>
> > From: Alexander Duyck <alexander.h.duyck@intel.com>
> >
> > The system log messages created on a link status change need to follow a
> > specific format to work with tools some customers use.
>
> It would be better to define standard helper functions that output this
> format somewhere. Then this could be also used in other drivers.
He's already been told this.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-11-27 11:34 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-27 0:02 [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format Jeff Kirsher
2008-11-27 0:02 ` [NET-NEXT PATCH 2/5] ixgbe: cleanup link up/down messages Jeff Kirsher
2008-11-27 8:22 ` David Miller
2008-11-27 0:02 ` [NET-NEXT PATCH 3/5] e1000: " Jeff Kirsher
2008-11-27 8:22 ` David Miller
2008-11-27 0:02 ` [NET-NEXT PATCH 4/5] ixgb: " Jeff Kirsher
2008-11-27 8:23 ` David Miller
2008-11-27 0:03 ` [NET-NEXT PATCH 5/5] e100: " Jeff Kirsher
2008-11-27 8:23 ` David Miller
2008-11-27 8:21 ` [NET-NEXT PATCH 1/5] igb: link up/down messages must follow a specific format David Miller
2008-11-27 10:50 ` Andi Kleen
2008-11-27 11:34 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).