]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3cf445427eb2593e1fa7f8d766b983eaeab553b
treeeb103cc462d369de8c93a710b37bac107e1c3810
parentb10019c92eb7f6cb611b122515eb01f5432c5168
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