Skip to content

Commit 0df170b

Browse files
Amit Kumar Salechadavem330
authored andcommitted
qlcnic: disable tx timeout recovery
Disable tx timeout recovery, if auto_fw_reset is disable Signed-off-by: Amit Kumar Salecha <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6d18168 commit 0df170b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/qlcnic/qlcnic_main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2581,7 +2581,8 @@ qlcnic_check_health(struct qlcnic_adapter *adapter)
25812581
if (adapter->need_fw_reset)
25822582
goto detach;
25832583

2584-
if (adapter->reset_context) {
2584+
if (adapter->reset_context &&
2585+
auto_fw_reset == AUTO_FW_RESET_ENABLED) {
25852586
qlcnic_reset_hw_context(adapter);
25862587
adapter->netdev->trans_start = jiffies;
25872588
}
@@ -2594,7 +2595,8 @@ qlcnic_check_health(struct qlcnic_adapter *adapter)
25942595

25952596
qlcnic_dev_request_reset(adapter);
25962597

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);
25982600

25992601
dev_info(&netdev->dev, "firmware hang detected\n");
26002602

0 commit comments

Comments
 (0)