diff options
author | Shahed Shaikh <shahed.shaikh@qlogic.com> | 2013-03-22 09:57:56 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-22 20:47:29 +0400 |
commit | 0a46bac0c5e02585af5c25a07584b5f1174f9ae7 (patch) | |
tree | 5b3854aae4d84221cd2f4e1ce79224a8b5be4d61 /drivers/net/ethernet | |
parent | a4791254b6625b06aa33e36304f6e8a1a4a1fdea (diff) | |
download | linux-0a46bac0c5e02585af5c25a07584b5f1174f9ae7.tar.xz |
qlcnic: Clear link status when interface is down
o When interface is down, mailbox command to get context statistics
fails. So restrict driver from issuing get statistics command when
interface is down.
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index d980723b7184..d8b9e3b3c4a9 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c @@ -1412,6 +1412,7 @@ void __qlcnic_down(struct qlcnic_adapter *adapter, struct net_device *netdev) smp_mb(); spin_lock(&adapter->tx_clean_lock); netif_carrier_off(netdev); + adapter->ahw->linkup = 0; netif_tx_disable(netdev); qlcnic_free_mac_list(adapter); |