net: hns3: remove upgrade reset level when reset fail
authorHuazhong Tan <tanhuazhong@huawei.com>
Mon, 29 Jul 2019 02:53:24 +0000 (10:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2019 15:23:40 +0000 (08:23 -0700)
commit8e9eee78316037f07fd391ddaef99e9c29b53b4b
tree8eef03c663ac0ae476ee68fe2f5062caa8a8d560
parentaa3253b8899d685811d159288f21cd2a2dbb5f0b
net: hns3: remove upgrade reset level when reset fail

Currently, hclge_reset_err_handle() will assert a global reset
when the failing count is smaller than MAX_RESET_FAIL_CNT, which
will affect other running functions.

So this patch removes this upgrading, and uses re-scheduling reset
task to do it.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c