5 #ifndef _RTE_VDPA_H_DEV_ 6 #define _RTE_VDPA_H_DEV_ 17 #define RTE_VHOST_QUEUE_ALL UINT16_MAX 31 uint64_t *protocol_features);
56 uint64_t *offset, uint64_t *size);
96 rte_vdpa_register_device(
struct rte_device *rte_dev,
123 rte_vhost_host_notifier_ctrl(
int vid, uint16_t qid,
bool enable);
int(* get_queue_num)(struct rte_vdpa_device *dev, uint32_t *queue_num)
int(* dev_close)(int vid)
struct rte_device * device
int(* set_vring_state)(int vid, int vring, int state)
struct rte_vdpa_dev_ops * ops
int(* get_stats)(struct rte_vdpa_device *dev, int qid, struct rte_vdpa_stat *stats, unsigned int n)
int(* migration_done)(int vid)
int(* set_features)(int vid)
int(* get_vfio_device_fd)(int vid)
int rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m)
int(* get_stats_names)(struct rte_vdpa_device *dev, struct rte_vdpa_stat_name *stats_names, unsigned int size)
int(* get_notify_area)(int vid, int qid, uint64_t *offset, uint64_t *size)
int(* get_features)(struct rte_vdpa_device *dev, uint64_t *features)
int(* get_vfio_group_fd)(int vid)
int(* get_protocol_features)(struct rte_vdpa_device *dev, uint64_t *protocol_features)
int(* reset_stats)(struct rte_vdpa_device *dev, int qid)