net: hns3: add support for spoof check setting
[linux-2.6-microblaze.git] / drivers / net / ethernet / hisilicon / hns3 / hnae3.h
index 1fc3728..b7b8169 100644 (file)
@@ -368,6 +368,8 @@ struct hnae3_ae_dev {
  *   Get the VF configuration setting by the host
  * set_vf_link_state
  *   Set VF link status
+ * set_vf_spoofchk
+ *   Enable/disable spoof check for specified vf
  */
 struct hnae3_ae_ops {
        int (*init_ae_dev)(struct hnae3_ae_dev *ae_dev);
@@ -537,6 +539,8 @@ struct hnae3_ae_ops {
                             struct ifla_vf_info *ivf);
        int (*set_vf_link_state)(struct hnae3_handle *handle, int vf,
                                 int link_state);
+       int (*set_vf_spoofchk)(struct hnae3_handle *handle, int vf,
+                              bool enable);
 };
 
 struct hnae3_dcb_ops {