]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
be2net: log link status
authorIvan Vecera <ivecera@redhat.com>
Thu, 30 Apr 2015 09:59:49 +0000 (11:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
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 <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>
Signed-off-by: David S. Miller <davem@davemloft.net>
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)