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:23:53 +0000 (14:23 +0200)
commit34a5c64951c38ef227f41660a00ff4b92778fd79
treef38d7c9641020ebb5a0c9cac7f425b1cacf9a348
parentc95578235888431e61d36f212ad2236e0ff8b90f
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