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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2020 21:26:25 +0000 (13:26 -0800)
commit7f39febf2e08a227e9696d2ebac2637d9ed98efc
tree9168fcedacb3b0edaf58d52b51c30258bc389c7d
parent7061867b59e0e5231b64655356c67ec31f44bc01
net: hns3: modify an unsuitable reset level for hardware error

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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c