vhost: export number of queues
[dpdk.git] / lib / librte_vhost / rte_virtio_net.h
index b8e9b02..de56b1b 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