examples/pipeline: fix build
[dpdk.git] / lib / vhost / vdpa_driver.h
index 88138be..8b88a53 100644 (file)
@@ -72,8 +72,15 @@ struct rte_vdpa_dev_ops {
        /** Reset statistics of the queue */
        int (*reset_stats)(struct rte_vdpa_device *dev, int qid);
 
-       /** Reserved for future extension */
-       void *reserved[2];
+       /** Get the device configuration space */
+       int (*get_config)(int vid, uint8_t *config, uint32_t size);
+
+       /** Set the device configuration space */
+       int (*set_config)(int vid, uint8_t *config, uint32_t offset,
+                     uint32_t size, uint32_t flags);
+
+       /** get device type: net device, blk device... */
+       int (*get_dev_type)(struct rte_vdpa_device *dev, uint32_t *type);
 };
 
 /**