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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 02:36:13 +0000 (19:36 -0700)
commit9091367037d3e6db590d9f8cd9a163336665ef27
treeb46c7279110eed8cd9057a533eb01feb56d08980
parent01c45c521a5aa2e3a077b27d090f05a20012dd65
net: hns3: add a check before PF inform VF to reset

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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c