Skip to content

io_uring/net: Add bundle support for multishot recvmsg

Clément Léger io-uring lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Changes in v1 from the cover letter

- Factorize header size computation
- Remove unreachable check for length

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2io_uring/net: Factor out receive buffer selectionio_uring/net.c+72 -380 replies
2/2io_uring/net: Add bundle support for multishot recvmsgio_uring/net.c+134 -204 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] io_uring/net: Add bundle support for multishot recvmsg

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 multishot recvmsg. Patch 1 is a preparatory refactor with no functional change. Patch 2 adds the bundle path for multishot recvmsg.

Note that contrary to plain recv which handles retry and can append more data to a bundle, recvmsg does not support that since each payload is associated to an envelope. trying to enqueue more data in an existing bundle would leave an envelope in the middle of some payload buffers which is not expected at all. The envelope must remain at the start of the buffer.

---

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

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

 io_uring/net.c | 244 +++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 196 insertions(+), 48 deletions(-)
Signature · 1 line
Clément Léger