]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost.h
vhost: fix guest notification setting
[dpdk.git] / lib / librte_vhost / vhost.h
index 0f7212f8882e52e5fbd0e30c081080e28c88ffef..a29c6638e2c49fd54c630a3464f23950105a3b31 100644 (file)
@@ -164,6 +164,9 @@ struct vhost_virtqueue {
        int                     enabled;
        int                     access_ok;
        int                     ready;
+       int                     notif_enable;
+#define VIRTIO_UNINITIALIZED_NOTIF     (-1)
+
        rte_spinlock_t          access_lock;
 
        /* Used to notify the guest (trigger interrupt) */
@@ -668,6 +671,8 @@ void vhost_enable_dequeue_zero_copy(int vid);
 void vhost_set_builtin_virtio_net(int vid, bool enable);
 void vhost_enable_extbuf(int vid);
 void vhost_enable_linearbuf(int vid);
+int vhost_enable_guest_notification(struct virtio_net *dev,
+               struct vhost_virtqueue *vq, int enable);
 
 struct vhost_device_ops const *vhost_driver_callback_get(const char *path);