0001
0002
0003
0004
0005
0006
0007 #ifndef _QED_IOV_IF_H
0008 #define _QED_IOV_IF_H
0009
0010 #include <linux/qed/qed_if.h>
0011
0012
0013 struct qed_iov_hv_ops {
0014 int (*configure)(struct qed_dev *cdev, int num_vfs_param);
0015
0016 int (*set_mac) (struct qed_dev *cdev, u8 *mac, int vfid);
0017
0018 int (*set_vlan) (struct qed_dev *cdev, u16 vid, int vfid);
0019
0020 int (*get_config) (struct qed_dev *cdev, int vf_id,
0021 struct ifla_vf_info *ivi);
0022
0023 int (*set_link_state) (struct qed_dev *cdev, int vf_id,
0024 int link_state);
0025
0026 int (*set_spoof) (struct qed_dev *cdev, int vfid, bool val);
0027
0028 int (*set_rate) (struct qed_dev *cdev, int vfid,
0029 u32 min_rate, u32 max_rate);
0030
0031 int (*set_trust) (struct qed_dev *cdev, int vfid, bool trust);
0032 };
0033
0034 #endif