]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2020 21:26:25 +0000 (13:26 -0800)
commita732dc9f171305b1b05e70c7f75070876189de3a
tree9168fcedacb3b0edaf58d52b51c30258bc389c7d
parent95bf5a019121b8ffd8adf6a29a59102e33e01083
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