vhost: fix vector filling for packed ring
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 23 Oct 2018 06:07:49 +0000 (14:07 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:05 +0000 (22:14 +0200)
commit16b9e38e74147fb004fa112c055b2fd500403b36
treed67af58e20873011c5708f8bb0ead92da0ba2e27
parent1726e9994c77cddd40a2982a1a01ceaf18a83403
vhost: fix vector filling for packed ring

We should return the length of the buffers described by
the current descriptor chain after filling the buffer
vector. So we need to zero the *len first.

Fixes: 2f3225a7d69b ("vhost: add vector filling support for packed ring")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c