vhost: restore mbuf first when freeing zmbuf
authorTiwei Bie <tiwei.bie@intel.com>
Fri, 22 Feb 2019 02:42:06 +0000 (10:42 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 1 Mar 2019 17:17:35 +0000 (18:17 +0100)
commit041d37b2ef25faeb1c00ed70a5fc2ea6e93c4828
tree6824e4a06ddc78b34fa4f60cef1abbbad44f9c79
parentfe2b986ac662c5df6435c4515cbc7083dd267cb1
vhost: restore mbuf first when freeing zmbuf

The mbufs should also be restored in free_zmbufs().

Fixes: b0a985d1f340 ("vhost: add dequeue zero copy")
Fixes: 3ebd930588b7 ("vhost: fix mbuf free")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost.h
lib/librte_vhost/vhost_user.c
lib/librte_vhost/virtio_net.c