]> asedeno.scripts.mit.edu Git - linux.git/commit
net: hns3: fix avoid unnecessary resetting for the H/W errors which do not require reset
authorShiju Jose <shiju.jose@huawei.com>
Thu, 13 Jun 2019 09:12:22 +0000 (17:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 02:26:15 +0000 (19:26 -0700)
commita955d71df26c43337ca0ab8f9279d54715cd601f
tree2b57b86e2dda56441cec03585edd1c141bb3f069
parent123297b78bc6ce7b8b599d18952d99ada958dd27
net: hns3: fix avoid unnecessary resetting for the H/W errors which do not require reset

HNS does not need to be reset when errors occur in some bits.
However presently the HNAE3_FUNC_RESET is set in this case and
as a result the default_reset is done when these errors are reported.
This patch fix this issue. Also patch does some optimization
in setting the reset level for the error recovery.

Reported-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Peng Li <lipeng321@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_err.c