numam-dpdk/lib/librte_vhost
Ilya Maximets 8729de6092 vhost: fix used descriptors number of mergeable enqueue
Return value on error changed from '-1' to '0' because it returns
unsigned value and it means number of used descriptors.

Also fixed updating of 'last_used_idx' by using actual number of
used descriptors.

Fixes: 623bc47054 ("vhost: do sanity check for ring descriptor length")

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-07-15 22:12:37 +02:00
..
eventfd_link vhost: fix kernel module insertion 2015-11-24 21:34:11 +01:00
libvirt vhost: fix qemu shutdown 2015-09-24 14:57:36 +02:00
vhost_cuse vhost: add vhost-user client mode 2016-06-22 09:47:07 +02:00
vhost_user vhost: fix potential null pointer dereference 2016-07-04 04:08:41 +02:00
Makefile mk: fix internal dependencies 2016-06-29 13:33:01 +02:00
rte_vhost_version.map vhost: export queue free entries 2016-06-22 09:02:58 +02:00
rte_virtio_net.h vhost: add reconnect ability 2016-06-22 09:47:12 +02:00
vhost_rxtx.c vhost: fix used descriptors number of mergeable enqueue 2016-07-15 22:12:37 +02:00
vhost-net.h vhost: unmap log memory on cleanup 2016-06-22 09:47:12 +02:00
virtio-net.c vhost: remove concurrent enqueue 2016-06-22 09:47:12 +02:00