]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: hns3: add a check before PF inform VF to reset
authorYonglong Liu <liuyonglong@huawei.com>
Sat, 7 Mar 2020 03:42:46 +0000 (11:42 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 7 Apr 2020 20:11:37 +0000 (15:11 -0500)
commit6f3ecad9c9201e05024518c4ba15232e5769f03d
treea27cf15d19399363234798b8e2e154a0db76d130
parente9ce3d8a754114df6567378a5627fe0679c82779
net: hns3: add a check before PF inform VF to reset

BugLink: https://launchpad.net/bugs/1867586
When setting VF's MAC from PF, if the VF driver not loaded, the
firmware will return error to PF.

So PF should check whether VF is alive before sending message to
VF when setting VF's MAC.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 9091367037d3e6db590d9f8cd9a163336665ef27)
Signed-off-by: Ike Panhc <ike.pan@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c