OSDN Git Service

net: hns3: never send command queue message to IMP when reset
authorPeng Li <lipeng321@huawei.com>
Sat, 24 Mar 2018 03:32:47 +0000 (11:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 16:12:27 +0000 (12:12 -0400)
commitb50ae26c57cb2fe8811574f6c1f92b16968e0dca
treeeb103cc462d369de8c93a710b37bac107e1c3810
parentea739c90650ae39307c7eb2bc6851ab78deed5df
net: hns3: never send command queue message to IMP when reset

IMP will not handle and command queue message any more when it is
in core/global, driver should not send command queue message to
IMP until reinitialize the NIC HW.

This patch checks the status and avoid the message sent to IMP when
reset.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c