DPDK
20.11.10
|
#include <rte_vdpa_dev.h>
Data Fields | |
int(* | get_queue_num )(struct rte_vdpa_device *dev, uint32_t *queue_num) |
int(* | get_features )(struct rte_vdpa_device *dev, uint64_t *features) |
int(* | get_protocol_features )(struct rte_vdpa_device *dev, uint64_t *protocol_features) |
int(* | dev_conf )(int vid) |
int(* | dev_close )(int vid) |
int(* | set_vring_state )(int vid, int vring, int state) |
int(* | set_features )(int vid) |
int(* | migration_done )(int vid) |
int(* | get_vfio_group_fd )(int vid) |
int(* | get_vfio_device_fd )(int vid) |
int(* | get_notify_area )(int vid, int qid, uint64_t *offset, uint64_t *size) |
int(* | get_stats_names )(struct rte_vdpa_device *dev, struct rte_vdpa_stat_name *stats_names, unsigned int size) |
int(* | get_stats )(struct rte_vdpa_device *dev, int qid, struct rte_vdpa_stat *stats, unsigned int n) |
int(* | reset_stats )(struct rte_vdpa_device *dev, int qid) |
void * | reserved [2] |
vdpa device operations
Definition at line 22 of file rte_vdpa_dev.h.
int(* get_queue_num) (struct rte_vdpa_device *dev, uint32_t *queue_num) |
Get capabilities of this device (Mandatory)
Definition at line 24 of file rte_vdpa_dev.h.
int(* get_features) (struct rte_vdpa_device *dev, uint64_t *features) |
Get supported features of this device (Mandatory)
Definition at line 27 of file rte_vdpa_dev.h.
int(* get_protocol_features) (struct rte_vdpa_device *dev, uint64_t *protocol_features) |
Get supported protocol features of this device (Mandatory)
Definition at line 30 of file rte_vdpa_dev.h.
int(* dev_conf) (int vid) |
Driver configure the device (Mandatory)
Definition at line 34 of file rte_vdpa_dev.h.
int(* dev_close) (int vid) |
Driver close the device (Mandatory)
Definition at line 37 of file rte_vdpa_dev.h.
int(* set_vring_state) (int vid, int vring, int state) |
Enable/disable this vring (Mandatory)
Definition at line 40 of file rte_vdpa_dev.h.
int(* set_features) (int vid) |
Set features when changed (Mandatory)
Definition at line 43 of file rte_vdpa_dev.h.
int(* migration_done) (int vid) |
Destination operations when migration done
Definition at line 46 of file rte_vdpa_dev.h.
int(* get_vfio_group_fd) (int vid) |
Get the vfio group fd
Definition at line 49 of file rte_vdpa_dev.h.
int(* get_vfio_device_fd) (int vid) |
Get the vfio device fd
Definition at line 52 of file rte_vdpa_dev.h.
int(* get_notify_area) (int vid, int qid, uint64_t *offset, uint64_t *size) |
Get the notify area info of the queue
Definition at line 55 of file rte_vdpa_dev.h.
int(* get_stats_names) (struct rte_vdpa_device *dev, struct rte_vdpa_stat_name *stats_names, unsigned int size) |
Get statistics name
Definition at line 59 of file rte_vdpa_dev.h.
int(* get_stats) (struct rte_vdpa_device *dev, int qid, struct rte_vdpa_stat *stats, unsigned int n) |
Get statistics of the queue
Definition at line 64 of file rte_vdpa_dev.h.
int(* reset_stats) (struct rte_vdpa_device *dev, int qid) |
Reset statistics of the queue
Definition at line 68 of file rte_vdpa_dev.h.
void* reserved[2] |
Reserved for future extension
Definition at line 71 of file rte_vdpa_dev.h.