diff options
author | Sony Chacko <sony.chacko@qlogic.com> | 2012-02-03 17:45:42 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-05 00:59:30 +0400 |
commit | 476a4b6d2543f0d9fa5205e0c25ebcd7973337bd (patch) | |
tree | 0a7eee6a6449bb0f42e5d0f64dbeec06f8daddb3 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c | |
parent | 646779f1b4ade4acac6b49dbfa8be84a98ab85b4 (diff) | |
download | linux-476a4b6d2543f0d9fa5205e0c25ebcd7973337bd.tar.xz |
qlcnic: report valid speed and duplex status when link is down
Report valid link statistics when link is down.
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c index 38669583840c..41d85efee422 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c @@ -1369,7 +1369,13 @@ qlcnic_handle_linkevent(struct qlcnic_adapter *adapter, adapter->module_type = module; adapter->link_autoneg = autoneg; - adapter->link_speed = link_speed; + + if (link_status) { + adapter->link_speed = link_speed; + } else { + adapter->link_speed = SPEED_UNKNOWN; + adapter->link_duplex = DUPLEX_UNKNOWN; + } } static void |