]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/rte_virtio_net.h
vhost: export number of queues
[dpdk.git] / lib / librte_vhost / rte_virtio_net.h
index b8e9b02ce3ab2aea05f7c524a18b8f16e5aa3c42..de56b1bc7f89be74f67ea676e68a669e7a5dc6ad 100644 (file)
@@ -256,6 +256,17 @@ int rte_vhost_driver_session_start(void);
  */
 int rte_vhost_get_numa_node(int vid);
 
+/**
+ * Get the number of queues the device supports.
+ *
+ * @param vid
+ *  virtio-net device ID
+ *
+ * @return
+ *  The number of queues, 0 on failure
+ */
+uint32_t rte_vhost_get_queue_num(int vid);
+
 /**
  * This function adds buffers to the virtio devices RX virtqueue. Buffers can
  * be received from the physical port or from another virtual device. A packet