mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 02:02:28 +09:00
net: hns3: deactive the reset timer when reset successfully
If the reset has been done successfully, the ongoing reset timer is unnecessary. Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
eb32c896f1
commit
056cbab332
@@ -3022,6 +3022,7 @@ static void hclge_reset(struct hclge_dev *hdev)
|
||||
hdev->last_reset_time = jiffies;
|
||||
hdev->reset_fail_cnt = 0;
|
||||
ae_dev->reset_type = HNAE3_NONE_RESET;
|
||||
del_timer(&hdev->reset_timer);
|
||||
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user