net: hns3: clear restting state when initializing HW device
authorPeng Li <lipeng321@huawei.com>
Thu, 13 Jun 2019 09:12:27 +0000 (17:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 02:26:16 +0000 (19:26 -0700)
commit31bb229d6f4a603a351d670ac078dff8ba3af398
tree9cc267fcd9ccf5569652e808da401793f186fb69
parent9e0254ddea78cf947bf6650a3ec8e50ab132e8a1
net: hns3: clear restting state when initializing HW device

IMP will set restting state for all function when PF FLR, driver
just clear the restting state in resetting progress, but don't do
it in initializing progress. As FLR is not created by driver,
it is necessary to clear restting state when initializing HW device.

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_main.c