]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 18:40:42 +0000 (14:40 -0400)
commitf9637cc2bf62763f705b5f2d401c48d36cf5a7a5
treeb2de71e191504a0ff8c94951444477a58f56da4e
parent823fe868a2718b0abc12d608c8660cdb0c4cc850
net: hns3: never send command queue message to IMP when reset

BugLink: https://bugs.launchpad.net/bugs/1768670
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>
(cherry picked from commit b50ae26c57cb2fe8811574f6c1f92b16968e0dca)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c