be2net: log link status
authorIvan Vecera <[email protected]>
Thu, 30 Apr 2015 09:59:49 +0000 (11:59 +0200)
committerDavid S. Miller <[email protected]>
Thu, 30 Apr 2015 20:36:22 +0000 (16:36 -0400)
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 <[email protected]>
Cc: Subbu Seetharaman <[email protected]>
Cc: Ajit Khaparde <[email protected]>
Signed-off-by: Ivan Vecera <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/emulex/benet/be_main.c

index fb0bc3c3620e9cf87983b1c425e0f24d431bffc9..e34913177743d35767682003e0cb95fb511d4b70 100644 (file)
@@ -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)