This patch tries to add MSG zero copy feature. Though io_uring supports buffer registration, it only support io_uring_prep_write_fixed. It means only one registered buffer can be used. It does not satisfy our current usage mode. According to this situation, we still use the MSG_ZEROCOPY flags in io_uring_prep_sendmsg. Furthermore, this new feature is dependent on the kernel version, The currently verified version is kernel 5.12 rc3. So it is not enabled in the default manner. For example, if you want to use it on the target side, you can use the following rpc to configure: ./scripts/rpc.py sock_impl_set_options -i uring --enable-zerocopy-send-server Change-Id: Ie7bb828f466362add94891989ddf0950dccd9e80 Signed-off-by: Ziye Yang <ziye.yang@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/957 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
sock | ||
Makefile |