21struct rte_vdev_device {
22 RTE_TAILQ_ENTRY(rte_vdev_device) next;
30#define RTE_DEV_TO_VDEV(ptr) \
31 container_of(ptr, struct rte_vdev_device, device)
33#define RTE_DEV_TO_VDEV_CONST(ptr) \
34 container_of(ptr, const struct rte_vdev_device, device)
36#define RTE_ETH_DEV_TO_VDEV(eth_dev) RTE_DEV_TO_VDEV((eth_dev)->device)
38static inline const char *
39rte_vdev_device_name(
const struct rte_vdev_device *dev)
41 if (dev && dev->device.name)
42 return dev->device.name;
46static inline const char *
47rte_vdev_device_args(
const struct rte_vdev_device *dev)
49 if (dev && dev->device.devargs)
50 return dev->device.devargs->args;
84 uint64_t iova,
size_t len);
103 uint64_t iova,
size_t len);
119#define RTE_VDEV_DRV_NEED_IOVA_AS_VA 0x0001
139#define RTE_PMD_REGISTER_VDEV(nm, vdrv)\
140static const char *vdrvinit_ ## nm ## _alias;\
141RTE_INIT(vdrvinitfn_ ##vdrv)\
143 (vdrv).driver.name = RTE_STR(nm);\
144 (vdrv).driver.alias = vdrvinit_ ## nm ## _alias;\
145 rte_vdev_register(&vdrv);\
147RTE_PMD_EXPORT_NAME(nm, __COUNTER__)
149#define RTE_PMD_REGISTER_ALIAS(nm, alias)\
150static const char *vdrvinit_ ## nm ## _alias = RTE_STR(alias)
152typedef void (*rte_vdev_scan_callback)(
void *user_arg);
int rte_vdev_init(const char *name, const char *args)
int rte_vdev_add_custom_scan(rte_vdev_scan_callback callback, void *user_arg)
int() rte_vdev_dma_unmap_t(struct rte_vdev_device *dev, void *addr, uint64_t iova, size_t len)
int() rte_vdev_remove_t(struct rte_vdev_device *dev)
void rte_vdev_register(struct rte_vdev_driver *driver)
RTE_TAILQ_HEAD(vdev_driver_list, rte_vdev_driver)
int() rte_vdev_dma_map_t(struct rte_vdev_device *dev, void *addr, uint64_t iova, size_t len)
int rte_vdev_remove_custom_scan(rte_vdev_scan_callback callback, void *user_arg)
int rte_vdev_uninit(const char *name)
int() rte_vdev_probe_t(struct rte_vdev_device *dev)
void rte_vdev_unregister(struct rte_vdev_driver *driver)
rte_vdev_remove_t * remove
rte_vdev_dma_map_t * dma_map
RTE_TAILQ_ENTRY(rte_vdev_driver) next
rte_vdev_dma_unmap_t * dma_unmap