numam-dpdk/lib/vhost
Maxime Coquelin 816a565bf3 vhost: merge sync and async mbuf to descriptor filling
This patches merges copy_mbuf_to_desc() used by the sync
path with async_mbuf_to_desc() used by the async path.

Most of these complex functions are identical, so merging
them will make the maintenance easier.

In order not to degrade performance, the patch introduces
a boolean function parameter to specify whether it is called
in async context. This boolean is statically passed to this
always-inlined function, so the compiler will optimize this
out.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Jiayu Hu <jiayu.hu@intel.com>
2021-10-29 12:32:30 +02:00
..
fd_man.c
fd_man.h
iotlb.c mempool: add namespace to flags 2021-10-20 10:00:16 +02:00
iotlb.h
meson.build
rte_vdpa_dev.h eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
rte_vdpa.h
rte_vhost_async.h vhost: remove notion of async descriptor 2021-10-29 12:32:30 +02:00
rte_vhost_crypto.h vhost: promote some APIs to stable 2021-09-14 13:21:57 +02:00
rte_vhost.h vhost: add power monitor API 2021-10-29 12:32:29 +02:00
socket.c vhost: log socket path on adding connection 2021-09-14 13:21:57 +02:00
vdpa.c eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
version.map vhost: add power monitor API 2021-10-29 12:32:29 +02:00
vhost_crypto.c vhost/crypto: check request pointer before dereference 2021-06-23 09:55:23 +02:00
vhost_user.c vhost: move async data in dedicated structure 2021-10-29 12:32:30 +02:00
vhost_user.h
vhost.c vhost: move async data in dedicated structure 2021-10-29 12:32:30 +02:00
vhost.h vhost: simplify async enqueue completion 2021-10-29 12:32:30 +02:00
virtio_crypto.h
virtio_net.c vhost: merge sync and async mbuf to descriptor filling 2021-10-29 12:32:30 +02:00