]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
be2net: log link status
authorIvan Vecera <ivecera@redhat.com>
Thu, 30 Apr 2015 09:59:49 +0000 (11:59 +0200)
committerManjunath Govindashetty <manjunath.govindashetty@oracle.com>
Fri, 16 Oct 2015 00:07:52 +0000 (17:07 -0700)
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 e43cc8a73ea7e85a927443c077c18ce6c673751a..b870a70391e988fda6426f0f42f110ee3c2d8b2d 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)