]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: clear unnecessary reset request in hclge_reset_rebuild
authorYufeng Mo <moyufeng@huawei.com>
Fri, 30 Apr 2021 09:06:21 +0000 (17:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Apr 2021 21:49:33 +0000 (14:49 -0700)
commit937dea6932b2f4965e4db255388aa19ddb6fa6cc
treee7d11b135c80c8f703d625947623f05482b1b55f
parentd37057b9380ddbfe8cb87127025506b7f5d9db32
net: hns3: clear unnecessary reset request in hclge_reset_rebuild

HW error and global reset are reported through MSIX interrupts.
The same error may be reported to different functions at the
same time. When global reset begins, the pending reset request
set by this error is unnecessary. So clear the pending reset
request after the reset is complete to avoid the repeated reset.

Fixes: e9e8fadb6d46 ("net: hns3: add handling of hw errors reported through MSIX")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c