]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/virtio_net.c
vhost: fix vector filling for packed ring
[dpdk.git] / lib / librte_vhost / virtio_net.c
index f8794ee198df19ea007059743965058305d5940f..1c31c05625c48de8ebb531cb15257699b7d0e209 100644 (file)
@@ -521,6 +521,7 @@ fill_vec_buf_packed(struct virtio_net *dev, struct vhost_virtqueue *vq,
                return -1;
 
        *desc_count = 0;
+       *len = 0;
 
        while (1) {
                if (unlikely(vec_id >= BUF_VECTOR_MAX))