[PATCH v2 0/3] io_uring/net: Add bundle support for recvmsg

From: Clément Léger

Date: Mon Nov 23 2026 - 16:40:13 EST


IORING_RECVSEND_BUNDLE is currently supported for IORING_OP_RECV but
rejected with -EINVAL for IORING_OP_RECVMSG, since the recvmsg output
envelope (struct io_uring_recvmsg_out, name and control data) was never
accounted for when bundling a receive across multiple provided buffers.

This series enables bundles for recvmsg. Patch 1 is a preparatory
refactor with no functional change. Patch 2 adds the bundle path for
single shot recvmsg. Patch 3 extends it to multishot.

---

Changes in v2
- Add bundle support for single shot recvmsg
- Added incremental support for recvmsg
- Remove superfluous comments

Changes in v1 (previously RFC)
- Factorize header size computation
- Remove unreachable check for length

Clément Léger (3):
io_uring/net: Factor out receive buffer selection
io_uring/net: Add bundle support for recvmsg
io_uring/net: Add bundle support for multishot recvmsg

io_uring/net.c | 228 ++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 179 insertions(+), 49 deletions(-)

--
Clément Léger