[dpdk-dev] [PATCH 09/17] vhost: turn queue pair to vring
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Mar 14 13:31:36 CET 2017
On 03/03/2017 10:51 AM, Yuanhan Liu wrote:
> The queue pair is very virtio-net specific, other devices don't have
> such concept. To make it generic, we should log the number of vrings
> instead of the number of queue pairs.
>
> This patch just does a simple convert, a later patch would export the
> number of vrings to applications.
>
> Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
> ---
> lib/librte_vhost/vhost.c | 74 ++++++++++++++-----------------------------
> lib/librte_vhost/vhost.h | 4 +--
> lib/librte_vhost/vhost_user.c | 28 +++++-----------
> lib/librte_vhost/virtio_net.c | 10 +++---
> 4 files changed, 38 insertions(+), 78 deletions(-)
>
Nice. Making it generic simplifies the net specific code.
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list