mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 09:43:59 +08:00
be2net: log link status
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>
This commit is contained in:
parent
9c7e8bc584
commit
18824894db
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user