vhost: remove notion of async descriptor
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 26 Oct 2021 16:28:58 +0000 (18:28 +0200)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 29 Oct 2021 10:32:30 +0000 (12:32 +0200)
commit2cbe826e264742801ffe05fb52cfa2e38a16081b
treec044dfad931f073a1e15a91f935b0d211e599e20
parentd5d25cfd855d57f450cbf17113f88fba675ca6e9
vhost: remove notion of async descriptor

Now that IO vectors iterator have been simplified, the
rte_vhost_async_desc struct only contains a pointer on
the iterator array stored in the async metadata.

This patch removes it, and pass directly the iterators
array pointer to the transfer_data callback. Doing that,
we avoid declaring the descriptor array in the stack, and
also avoid the cost of filling it.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Jiayu Hu <jiayu.hu@intel.com>
examples/vhost/ioat.c
examples/vhost/ioat.h
lib/vhost/rte_vhost_async.h
lib/vhost/virtio_net.c