[dpdk-dev] [PATCH 2/6] lib_vhost: Support multiple queues in virtio dev
Xie, Huawei
huawei.xie at intel.com
Wed Jun 3 04:47:23 CEST 2015
On 5/21/2015 3:51 PM, Ouyang Changchun wrote:
> 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 <changchun.ouyang at intel.com>
> ---
> 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.
More information about the dev
mailing list