]> git.droids-corp.org - dpdk.git/commit
vhost: introduce specific iovec structure
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 26 Oct 2021 16:28:55 +0000 (18:28 +0200)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 29 Oct 2021 10:32:30 +0000 (12:32 +0200)
commit6171bfbfb2ea38f11ec2e9eb1f97b04e32b9b765
treebf5075f25a4f323bbbfdb480f2030e5156ba9b52
parent8b3fc5a21323c93dac3faede6e9ee45a88b4daf8
vhost: introduce specific iovec structure

This patch introduces rte_vhost_iovec struct that contains
both source and destination addresses since we always have
a 1:1 mapping between source and destination. While using
the standard iovec struct might have seemed better, having
to duplicate IO vectors and its iterators is memory
inefficient and make the implementation more complex.

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>
examples/vhost/ioat.c
lib/vhost/rte_vhost_async.h
lib/vhost/vhost.h
lib/vhost/virtio_net.c