]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit65c60d723bb8ff18e79713ea9ccc640167649a0d
tree8eef03c663ac0ae476ee68fe2f5062caa8a8d560
parentc548864e7ad7477d0b25067b2a5cec8e4be1f181
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