]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: hns3: modify an unsuitable reset level for hardware error
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 4 Jan 2020 02:49:31 +0000 (10:49 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 26 Feb 2020 02:57:39 +0000 (20:57 -0600)
commit796c8e6e9ea1c6c6e0ac1979f7b6cb9ff9d726e5
tree0b915b12e16db2e4bb14bc817326325997c06bf1
parente81b9d2661b94098b35f466039a2ab867334e2d7
net: hns3: modify an unsuitable reset level for hardware error

BugLink: https://launchpad.net/bugs/1859261
According to hardware user manual, when hardware reports error
'roc_pkt_without_key_port', the driver should assert function
reset to do the recovery.

So this patch uses HNAE3_FUNC_RESET to replace HNAE3_GLOBAL_RESET.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 7f39febf2e08a227e9696d2ebac2637d9ed98efc)
Signed-off-by: Ike Panhc <ike.pan@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c