vhost: fix dequeue offload support
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 24 Oct 2017 03:12:30 +0000 (11:12 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 24 Oct 2017 19:31:23 +0000 (21:31 +0200)
commit1d8161ba02abf28131e52e74f72af4f9cdc75907
tree9361cf2e85aac4f144e10961337136e3098c05a8
parent2fd826a301b5a872cad0b67c807d3011693321c7
vhost: fix dequeue offload support

When offload is enabled, vhost needs to access the first mbuf
to get the packet info, e.g. TCP header. So we couldn't delay
the data copy in this case.

Fixes: e5c494a7a22b ("vhost: batch small guest memory copies")

Reported-by: Lei Yao <lei.a.yao@intel.com>
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
lib/librte_vhost/virtio_net.c