netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3] be2net: log link status
@ 2015-04-28 19:39 Ivan Vecera
  2015-04-29  9:17 ` Sathya Perla
  2015-04-29 19:01 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Ivan Vecera @ 2015-04-28 19:39 UTC (permalink / raw)
  To: netdev; +Cc: Sathya Perla, Subbu Seetharaman, Ajit Khaparde, David Miller

The driver unlike other drivers does not log link state changes. It's 
better for an user when asynchronous link states are logged in the 
system log.

v3: Changes from v2 discarded as "not necessary"

Cc: Sathya Perla <sathya.perla@emulex.com>
Cc: Subbu Seetharaman <subbu.seetharaman@emulex.com>
Cc: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
---
  drivers/net/ethernet/emulex/benet/be_main.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/emulex/benet/be_main.c 
b/drivers/net/ethernet/emulex/benet/be_main.c
index fb0bc3c..e349131 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
@@ -662,6 +662,8 @@ void be_link_status_update(struct be_adapter 
*adapter, u8 link_status)
  		netif_carrier_on(netdev);
  	else
  		netif_carrier_off(netdev);
+
+	netdev_info(netdev, "Link is %s\n", link_status ? "Up" : "Down");
  }
   static void be_tx_stats_update(struct be_tx_obj *txo, struct sk_buff 
*skb)
-- 
2.0.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* RE: [PATCH net-next v3] be2net: log link status
  2015-04-28 19:39 [PATCH net-next v3] be2net: log link status Ivan Vecera
@ 2015-04-29  9:17 ` Sathya Perla
  2015-04-29 19:01 ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: Sathya Perla @ 2015-04-29  9:17 UTC (permalink / raw)
  To: Ivan Vecera, netdev
  Cc: Subramanian Seetharaman, Ajit Kumar Khaparde, David Miller

> -----Original Message-----
> From: Ivan Vecera [mailto:ivecera@redhat.com]
> 
> The driver unlike other drivers does not log link state changes. It's
> better for an user when asynchronous link states are logged in the
> system log.
> 
> v3: Changes from v2 discarded as "not necessary"
> 
> Cc: Sathya Perla <sathya.perla@emulex.com>
> Cc: Subbu Seetharaman <subbu.seetharaman@emulex.com>
> Cc: Ajit Khaparde <ajit.khaparde@emulex.com>
> Signed-off-by: Ivan Vecera <ivecera@redhat.com>

Acked-by: Sathya Perla <sathya.perla@emulex.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next v3] be2net: log link status
  2015-04-28 19:39 [PATCH net-next v3] be2net: log link status Ivan Vecera
  2015-04-29  9:17 ` Sathya Perla
@ 2015-04-29 19:01 ` David Miller
  2015-04-30  9:59   ` Ivan Vecera
  1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2015-04-29 19:01 UTC (permalink / raw)
  To: ivecera; +Cc: netdev, sathya.perla, subbu.seetharaman, ajit.khaparde

From: Ivan Vecera <ivecera@redhat.com>
Date: Tue, 28 Apr 2015 21:39:32 +0200

> The driver unlike other drivers does not log link state changes. It's
> better for an user when asynchronous link states are logged in the
> system log.
> 
> v3: Changes from v2 discarded as "not necessary"
> 
> Cc: Sathya Perla <sathya.perla@emulex.com>
> Cc: Subbu Seetharaman <subbu.seetharaman@emulex.com>
> Cc: Ajit Khaparde <ajit.khaparde@emulex.com>
> Signed-off-by: Ivan Vecera <ivecera@redhat.com>
> ---
>  drivers/net/ethernet/emulex/benet/be_main.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/net/ethernet/emulex/benet/be_main.c
> b/drivers/net/ethernet/emulex/benet/be_main.c
> index fb0bc3c..e349131 100644
> --- a/drivers/net/ethernet/emulex/benet/be_main.c
> +++ b/drivers/net/ethernet/emulex/benet/be_main.c
> @@ -662,6 +662,8 @@ void be_link_status_update(struct be_adapter
> *adapter, u8 link_status)

Patch has been corrupted by your email client.

Please fix this up and resubmit.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH net-next v3] be2net: log link status
  2015-04-29 19:01 ` David Miller
@ 2015-04-30  9:59   ` Ivan Vecera
  2015-04-30 20:36     ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Ivan Vecera @ 2015-04-30  9:59 UTC (permalink / raw)
  To: netdev; +Cc: davem, Sathya Perla, Subbu Seetharaman, Ajit Khaparde

The driver unlike other drivers does not log link state changes. It's
better for an user when asynchronous link states are logged to the system
log.

v3: Changes from v2 discarded as "not necessary"

Cc: Sathya Perla <sathya.perla@emulex.com>
Cc: Subbu Seetharaman <subbu.seetharaman@emulex.com>
Cc: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
---
 drivers/net/ethernet/emulex/benet/be_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
index fb0bc3c..e349131 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
@@ -662,6 +662,8 @@ void be_link_status_update(struct be_adapter *adapter, u8 link_status)
 		netif_carrier_on(netdev);
 	else
 		netif_carrier_off(netdev);
+
+	netdev_info(netdev, "Link is %s\n", link_status ? "Up" : "Down");
 }
 
 static void be_tx_stats_update(struct be_tx_obj *txo, struct sk_buff *skb)
-- 
2.0.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next v3] be2net: log link status
  2015-04-30  9:59   ` Ivan Vecera
@ 2015-04-30 20:36     ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2015-04-30 20:36 UTC (permalink / raw)
  To: ivecera; +Cc: netdev, sathya.perla, subbu.seetharaman, ajit.khaparde

From: Ivan Vecera <ivecera@redhat.com>
Date: Thu, 30 Apr 2015 11:59:49 +0200

> The driver unlike other drivers does not log link state changes. It's
> better for an user when asynchronous link states are logged to the system
> log.
> 
> v3: Changes from v2 discarded as "not necessary"
> 
> Cc: Sathya Perla <sathya.perla@emulex.com>
> Cc: Subbu Seetharaman <subbu.seetharaman@emulex.com>
> Cc: Ajit Khaparde <ajit.khaparde@emulex.com>
> Signed-off-by: Ivan Vecera <ivecera@redhat.com>

Applied.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-30 20:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-28 19:39 [PATCH net-next v3] be2net: log link status Ivan Vecera
2015-04-29  9:17 ` Sathya Perla
2015-04-29 19:01 ` David Miller
2015-04-30  9:59   ` Ivan Vecera
2015-04-30 20:36     ` 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).