vhost: fix dequeue zero copy with virtio1
authorJunjie Chen <junjie.j.chen@intel.com>
Wed, 13 Dec 2017 16:50:56 +0000 (11:50 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit803aeecef123877764aac56270180e920aea8863
treeef96cc1065f1d2a6377acd46bb8db7a3ec48e044
parentcab278dee9290ee48062576b09d21e6c1eb0214b
vhost: fix dequeue zero copy with virtio1

This fix dequeue zero copy can not work with Qemu
version >= 2.7. Since from Qemu 2.7 virtio device
use virtio-1 protocol, the zero copy code path
forget to add offset to buffer address.

Fixes: b0a985d1f340 ("vhost: add dequeue zero copy")
Cc: stable@dpdk.org
Signed-off-by: Junjie Chen <junjie.j.chen@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
lib/librte_vhost/virtio_net.c