io_uring/net: Allow to do vectorized send
authorNorman Maurer <norman_maurer@apple.com>
Tue, 29 Jul 2025 06:59:53 +0000 (20:59 -1000)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jul 2025 14:23:04 +0000 (08:23 -0600)
commit6f02527729bd31ca4e473bff19fda4ccd5889148
tree8f7b7f7cfa9bc101723b258eb3a6b63da0679ac0
parent4b290aae788e06561754b28c6842e4080957d3f7
io_uring/net: Allow to do vectorized send

At the moment you have to use sendmsg for vectorized send.
While this works it's suboptimal as it also means you need to
allocate a struct msghdr that needs to be kept alive until a
submission happens. We can remove this limitation by just
allowing to use send directly.

Signed-off-by: Norman Maurer <norman_maurer@apple.com>
Link: https://lore.kernel.org/r/20250729065952.26646-1-norman_maurer@apple.com
[axboe: remove -EINVAL return for SENDMSG and SEND_VECTORIZED]
[axboe: allow send_zc to set SEND_VECTORIZED too]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/net.c