]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: clean residual vf config after disable sriov
authorPeng Li <lipeng321@huawei.com>
Sat, 26 Mar 2022 09:51:02 +0000 (17:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:06:30 +0000 (14:06 +0200)
commit4cc7643feeba4054982ba2b4054df287d81cad4c
tree3af94041b1d30df1deebe3eeb4fac03a3e12e93b
parent6d12ce1468e18033e77d46a4f5c97522c2c90aa5
net: hns3: clean residual vf config after disable sriov

[ Upstream commit 671cb8cbb9c9e24b681d21b1bfae991e2386ac73 ]

After disable sriov, VF still has some config and info need to be
cleaned, which configured by PF. This patch clean the HW config
and SW struct vport->vf_info.

Fixes: fa8d82e853e8 ("net: hns3: Add support of .sriov_configure in HNS3 driver")
Signed-off-by: Peng Li<lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c