]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: hns3: disable mac in flr process
authorYufeng Mo <moyufeng@huawei.com>
Mon, 13 Sep 2021 13:08:23 +0000 (21:08 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 5 Nov 2021 09:19:23 +0000 (10:19 +0100)
commit2fbefbfe207bd02a9c4a29e1a13c11695bb453ec
tree61cf138c63bfd1d49f7ee5a92b400dd4a1b1782a
parent24d6e3155efd2b08807e304b88b6047d3beb8400
net: hns3: disable mac in flr process

BugLink: https://bugs.launchpad.net/bugs/1948873
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c