]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost.h
vhost: add flag for built-in virtio driver
[dpdk.git] / lib / librte_vhost / vhost.h
index 646aad30d9d1b5324ca5ee7edb066c7db398d31e..d947bc9e3b3fb8d6bc56fa2ef3b9a58139e55b67 100644 (file)
@@ -24,6 +24,8 @@
 #define VIRTIO_DEV_RUNNING 1
 /* Used to indicate that the device is ready to operate */
 #define VIRTIO_DEV_READY 2
+/* Used to indicate that the built-in vhost net device backend is enabled */
+#define VIRTIO_DEV_BUILTIN_VIRTIO_NET 4
 
 /* Backend value set by guest. */
 #define VIRTIO_DEV_STOPPED -1
@@ -357,6 +359,7 @@ int alloc_vring_queue(struct virtio_net *dev, uint32_t vring_idx);
 
 void vhost_set_ifname(int, const char *if_name, unsigned int if_len);
 void vhost_enable_dequeue_zero_copy(int vid);
+void vhost_set_builtin_virtio_net(int vid, bool enable);
 
 struct vhost_device_ops const *vhost_driver_callback_get(const char *path);