vhost: use buffer vectors in dequeue path
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 6 Jul 2018 07:04:46 +0000 (09:04 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 10 Jul 2018 21:13:36 +0000 (23:13 +0200)
commitfd68b4739d2c60d10023762603d2b65127d65fa1
tree77ee89f1073c9c92a15d1ef9ca2253eb390fc526
parent915cf940422514b332822eeee39eb5e1bd9383e6
vhost: use buffer vectors in dequeue path

To ease packed ring layout integration, this patch makes
the dequeue path to re-use buffer vectors implemented for
enqueue path.

Doing this, copy_desc_to_mbuf() is now ring layout type
agnostic.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Tiwei Bie <tiwei.bie@intel.com>
lib/librte_vhost/vhost.h
lib/librte_vhost/virtio_net.c