net: hns3: disable mac in flr process
authorYufeng Mo <moyufeng@huawei.com>
Mon, 13 Sep 2021 13:08:23 +0000 (21:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:27:59 +0000 (12:27 +0200)
commitad47e092210882ae1b5a2239ea59c4e8339cc980
tree41766b6d67ce73a334cb4c4c4d0bf1a583661add
parentb76522c7c349ef35333c8d11e0bba720a5e03244
net: hns3: disable mac in flr process

commit b81d8948746520f989e86d66292ff72b5056114a upstream.

The firmware will not disable mac in flr process. Therefore, the driver
needs to proactively disable mac during flr, which is the same as the
function reset.

Fixes: 35d93a30040c ("net: hns3: adjust the process of PF reset")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c