vhost: simplify async IO vectors iterators
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 26 Oct 2021 16:28:53 +0000 (18:28 +0200)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 29 Oct 2021 10:32:30 +0000 (12:32 +0200)
commit3fe629547e17dc6c71fa88a9fd642b9759680210
treea69629156bc89a23c0f86badb397cdff52c9d599
parent97064162d47001c50f0aabad3cc365f7d0ce43c9
vhost: simplify async IO vectors iterators

This patch splits the iterator arrays in two, one for
source and one for destination. The goal is make the code
easier to understand.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: Jiayu Hu <jiayu.hu@intel.com>
lib/vhost/vhost.h
lib/vhost/virtio_net.c