]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/rte_virtio_net.h
vhost: introduce API to start a specific driver
[dpdk.git] / lib / librte_vhost / rte_virtio_net.h
index 1fde82248b5aeaa079479fe03c0a0f23fbf55e6f..fd9cbb0c59e578ced414e97ad870346d20d5ec66 100644 (file)
@@ -256,8 +256,19 @@ int rte_vhost_get_negotiated_features(int vid, uint64_t *features);
 /* Register callbacks. */
 int rte_vhost_driver_callback_register(const char *path,
        struct vhost_device_ops const * const ops);
-/* Start vhost driver session blocking loop. */
-int rte_vhost_driver_session_start(void);
+
+/**
+ *
+ * Start the vhost-user driver.
+ *
+ * This function triggers the vhost-user negotiation.
+ *
+ * @param path
+ *  The vhost-user socket file path
+ * @return
+ *  0 on success, -1 on failure
+ */
+int rte_vhost_driver_start(const char *path);
 
 /**
  * Get the MTU value of the device if set in QEMU.