aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_main.c
diff options
context:
space:
mode:
authorAmit Kumar Salecha <amit.salecha@qlogic.com>2010-07-13 16:33:32 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-14 16:54:15 -0400
commit0df170b6078c58d1d2118a5f657fe366ecdc1262 (patch)
tree642a9ab004c64484f41033a8f2e3277cfbb502a0 /drivers/net/qlcnic/qlcnic_main.c
parent6d181688953465c76c375c665a557c1ff88dcc40 (diff)
qlcnic: disable tx timeout recovery
Disable tx timeout recovery, if auto_fw_reset is disable Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_main.c')
-rw-r--r--drivers/net/qlcnic/qlcnic_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c
index 4d1831350efa..0fef8c3c553f 100644
--- a/drivers/net/qlcnic/qlcnic_main.c
+++ b/drivers/net/qlcnic/qlcnic_main.c
@@ -2581,7 +2581,8 @@ qlcnic_check_health(struct qlcnic_adapter *adapter)
2581 if (adapter->need_fw_reset) 2581 if (adapter->need_fw_reset)
2582 goto detach; 2582 goto detach;
2583 2583
2584 if (adapter->reset_context) { 2584 if (adapter->reset_context &&
2585 auto_fw_reset == AUTO_FW_RESET_ENABLED) {
2585 qlcnic_reset_hw_context(adapter); 2586 qlcnic_reset_hw_context(adapter);
2586 adapter->netdev->trans_start = jiffies; 2587 adapter->netdev->trans_start = jiffies;
2587 } 2588 }
@@ -2594,7 +2595,8 @@ qlcnic_check_health(struct qlcnic_adapter *adapter)
2594 2595
2595 qlcnic_dev_request_reset(adapter); 2596 qlcnic_dev_request_reset(adapter);
2596 2597
2597 clear_bit(__QLCNIC_FW_ATTACHED, &adapter->state); 2598 if ((auto_fw_reset == AUTO_FW_RESET_ENABLED))
2599 clear_bit(__QLCNIC_FW_ATTACHED, &adapter->state);
2598 2600
2599 dev_info(&netdev->dev, "firmware hang detected\n"); 2601 dev_info(&netdev->dev, "firmware hang detected\n");
2600 2602