numam-spdk/lib/bdev/virtio
Shuhei Matsumoto 1554a344c9 env: Add free_space parameter to spdk_ring_enqueue
DPDK rte_ring_enqueue_bulk() has free_space parameter to return
the amount of space in the ring after enqueue operation has finished.
This parameter can be used to wait when the ring is almost full and
wake up when there is enough space available in the ring.

Hence we add free_space to spdk_ring_enqueue() and spdk_ring_enqueue()
passes it to rte_ring_enqueue_bulk() simply.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I9b9d6a5a097cf6dc4b97dfda7442f2c4b0aed4d3
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456734
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2019-06-05 05:23:58 +00:00
..
bdev_virtio_blk.c bdev: process failure of spdk_bdev_io_get_buf_cb in each bdev module 2019-02-27 07:28:15 +00:00
bdev_virtio_rpc.c misc/rpc: rename some C functions of rpc methods 2019-05-07 05:30:16 +00:00
bdev_virtio_scsi.c env: Add free_space parameter to spdk_ring_enqueue 2019-06-05 05:23:58 +00:00
bdev_virtio.h bdev: add remove_virtio_bdev call 2018-07-26 22:07:50 +00:00
Makefile bdev/virtio: added vhost-blk initiator 2018-03-02 13:41:38 -05:00