vhost: fix return value on dequeue path
authorJiayu Hu <jiayu.hu@intel.com>
Wed, 25 Jul 2018 08:21:42 +0000 (16:21 +0800)
committerTiwei Bie <tiwei.bie@intel.com>
Thu, 26 Jul 2018 08:02:43 +0000 (10:02 +0200)
commit6e2fad861a6dd80d8dafe71ae14f87a30add7366
tree222be1b7ef8abc90c849cf065fbe9904713da003
parent2854ba22c583cd4b40c2d52e3279dece175ce1ca
vhost: fix return value on dequeue path

This patch fixes the incorrect return value for rte_vhost_dequeue_burst()
when virtqueue is not enabled or virtqueue address translation fails.

Fixes: 62250c1d0978 ("vhost: extract split ring handling from Rx and Tx functions")

Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
Acked-by: Tiwei Bie <tiwei.bie@intel.com>
lib/librte_vhost/virtio_net.c