summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hnae3.h
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2022-03-26 17:51:02 +0800
committerDavid S. Miller <davem@davemloft.net>2022-03-26 09:16:49 -0700
commit671cb8cbb9c9e24b681d21b1bfae991e2386ac73 (patch)
treedf8d9f30af6bc3817f642b2ac35ae0f55783c6b2 /drivers/net/ethernet/hisilicon/hns3/hnae3.h
parenta89cbb16995bf15582e0d1bdb922ad1a54a2fa8c (diff)
downloadlinux-stable-671cb8cbb9c9e24b681d21b1bfae991e2386ac73.tar.gz
linux-stable-671cb8cbb9c9e24b681d21b1bfae991e2386ac73.tar.bz2
linux-stable-671cb8cbb9c9e24b681d21b1bfae991e2386ac73.zip
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: 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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hnae3.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
index 6f18c9a03231..d44dd7091fa1 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
@@ -537,6 +537,8 @@ struct hnae3_ae_dev {
* Get 1588 rx hwstamp
* get_ts_info
* Get phc info
+ * clean_vf_config
+ * Clean residual vf info after disable sriov
*/
struct hnae3_ae_ops {
int (*init_ae_dev)(struct hnae3_ae_dev *ae_dev);
@@ -730,6 +732,7 @@ struct hnae3_ae_ops {
struct ethtool_ts_info *info);
int (*get_link_diagnosis_info)(struct hnae3_handle *handle,
u32 *status_code);
+ void (*clean_vf_config)(struct hnae3_ae_dev *ae_dev, int num_vfs);
};
struct hnae3_dcb_ops {