]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix avoid unnecessary resetting for the H/W errors which do not require...
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)
commitb823a3d9aa9c59071e1615d8bf6b62b50a382a18
tree2b57b86e2dda56441cec03585edd1c141bb3f069
parent6a5580ad9c5d2a8734ecae1a57bf9b58994ca058
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