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:
parent
eb32c896f1
commit
056cbab332
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue