Thread (65 messages) 65 messages, 9 authors, 2015-09-06

Re: [PATCH 2/6] lib_vhost: Support multiple queues in virtio dev

From: Xie, Huawei <hidden>
Date: 2015-06-03 02:47:29

On 5/21/2015 3:51 PM, Ouyang Changchun wrote:
quoted hunk ↗ jump to hunk
Each virtio device could have multiple queues, say 2 or 4, at most 8.
Enabling this feature allows virtio device/port on guest has the ability to
use different vCPU to receive/transmit packets from/to each queue.

In multiple queues mode, virtio device readiness means all queues of
this virtio device are ready, cleanup/destroy a virtio device also
requires clearing all queues belong to it.

Signed-off-by: Changchun Ouyang <redacted>
---
 lib/librte_vhost/rte_virtio_net.h             |  15 ++-
 lib/librte_vhost/vhost_rxtx.c                 |  32 ++++---
 lib/librte_vhost/vhost_user/vhost-net-user.c  |   4 +-
 lib/librte_vhost/vhost_user/virtio-net-user.c |  97 +++++++++++++++----
 lib/librte_vhost/vhost_user/virtio-net-user.h |   2 +
 lib/librte_vhost/virtio-net.c                 | 132 +++++++++++++++++---------
 6 files changed, 201 insertions(+), 81 deletions(-)
diff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_virtio_net.h
index 5d38185..3e82bef 100644
--- a/lib/librte_vhost/rte_virtio_net.h
+++ b/lib/librte_vhost/rte_virtio_net.h
@@ -59,6 +59,10 @@ struct rte_mbuf;
Some basic question:
Does vhost have no way to know how many queues each virtio device has?
rte_vhost_q_num_set would set the same number of queues for all virtio
devices, so different virtio devices couldn't have different number of
queues.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help