examples/vhost_blk: refactor to increase readability
authorJin Yu <jin.yu@intel.com>
Thu, 30 Apr 2020 17:20:08 +0000 (01:20 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:26 +0000 (15:54 +0200)
commit91d3e2d42997e57e2abf34b1c24621530819d2eb
treee4dc17f8f42bfbac56b73cf8549b97d76faaca8b
parent0ba70e439ee44c222cccf6bef6460db31611dfaa
examples/vhost_blk: refactor to increase readability

Refactor the code and make it easier to read. It's
useful for understanding the inflight APIs and how
packed ring works. Update the RST because the packed
ring patch has been merged to QEMU master and ring_packed
parameter changes to packed.

Signed-off-by: Jin Yu <jin.yu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
doc/guides/sample_app_ug/vhost_blk.rst
examples/vhost_blk/blk.c
examples/vhost_blk/vhost_blk.c
examples/vhost_blk/vhost_blk.h