]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Mar 2022 16:16:49 +0000 (09:16 -0700)
commitdbd5c5115605e6d324cd9d83d78d124a5133afaf
treedf8d9f30af6bc3817f642b2ac35ae0f55783c6b2
parentc8d73498ed6dacb661cabeb722f4a8127dee1d7b
net: hns3: clean residual vf config after disable sriov

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: 3a2088b5c635 ("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>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c