vhost: refactor async split ring functions
authorCheng Jiang <cheng1.jiang@intel.com>
Tue, 27 Apr 2021 08:03:32 +0000 (08:03 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 4 May 2021 08:21:46 +0000 (10:21 +0200)
commit3d6cb86b0de5ea28368884384f83237d80f23b54
treec63e573a07e987a6171567cea9526ed4b55ddbce
parent47afdbbe56554444f16e721bc872c262e245fb97
vhost: refactor async split ring functions

This patch moves some code of async vhost split ring into
inline functions to improve the readability. Also, it
changes the pointer index style of iterator to make the
code more concise.

Signed-off-by: Cheng Jiang <cheng1.jiang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Jiayu Hu <jiayu.hu@intel.com>
lib/vhost/virtio_net.c