]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: hns3: deactive the reset timer when reset successfully
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 6 Apr 2019 07:43:29 +0000 (15:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 22:30:49 +0000 (15:30 -0700)
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 693dfdda7537e3746f1204f0535033b0f16f0dfe..2683399a07457bdd5cd4a53a51f81c9979341b0f 100644 (file)
@@ -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;