23 #define MAX_VDPA_NAME_LEN 128 49 int (*get_queue_num)(
int did, uint32_t *queue_num);
52 int (*get_features)(
int did, uint64_t *features);
55 int (*get_protocol_features)(
int did, uint64_t *protocol_features);
58 int (*dev_conf)(
int vid);
59 int (*dev_close)(
int vid);
62 int (*set_vring_state)(
int vid,
int vring,
int state);
65 int (*set_features)(
int vid);
68 int (*migration_done)(
int vid);
71 int (*get_vfio_group_fd)(
int vid);
74 int (*get_vfio_device_fd)(
int vid);
77 int (*get_notify_area)(
int vid,
int qid,
78 uint64_t *offset, uint64_t *size);
struct rte_vdpa_dev_ops * ops
__rte_experimental struct rte_vdpa_device * rte_vdpa_get_device(int did)
__rte_experimental int rte_vhost_host_notifier_ctrl(int vid, bool enable)
__rte_experimental int rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m)
__rte_experimental int rte_vdpa_unregister_device(int did)
#define __rte_cache_aligned
__rte_experimental int rte_vdpa_register_device(struct rte_vdpa_dev_addr *addr, struct rte_vdpa_dev_ops *ops)
__rte_experimental int rte_vdpa_find_device_id(struct rte_vdpa_dev_addr *addr)
__rte_experimental int rte_vdpa_get_device_num(void)