Commit 69324275 authored by Sony Chacko's avatar Sony Chacko Committed by David S. Miller

qlcnic: fix link status message

Display interface name with netdev_info() for link status message.
Signed-off-by: default avatarSony Chacko <sony.chacko@qlogic.com>
Signed-off-by: default avatarAmit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b6021212
...@@ -1944,14 +1944,14 @@ void qlcnic_advert_link_change(struct qlcnic_adapter *adapter, int linkup) ...@@ -1944,14 +1944,14 @@ void qlcnic_advert_link_change(struct qlcnic_adapter *adapter, int linkup)
struct net_device *netdev = adapter->netdev; struct net_device *netdev = adapter->netdev;
if (adapter->ahw.linkup && !linkup) { if (adapter->ahw.linkup && !linkup) {
dev_info(&netdev->dev, "NIC Link is down\n"); netdev_info(netdev, "NIC Link is down\n");
adapter->ahw.linkup = 0; adapter->ahw.linkup = 0;
if (netif_running(netdev)) { if (netif_running(netdev)) {
netif_carrier_off(netdev); netif_carrier_off(netdev);
netif_stop_queue(netdev); netif_stop_queue(netdev);
} }
} else if (!adapter->ahw.linkup && linkup) { } else if (!adapter->ahw.linkup && linkup) {
dev_info(&netdev->dev, "NIC Link is up\n"); netdev_info(netdev, "NIC Link is up\n");
adapter->ahw.linkup = 1; adapter->ahw.linkup = 1;
if (netif_running(netdev)) { if (netif_running(netdev)) {
netif_carrier_on(netdev); netif_carrier_on(netdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment