Commit 056cbab3 authored by Huazhong Tan's avatar Huazhong Tan Committed by David S. Miller
Browse files

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: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eb32c896
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;