Skip to content

RFC io_uring/net: Add bundle support for multishot recvmsg

Clément Léger io-uring lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

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

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 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.

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 | 240 ++++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 196 insertions(+), 44 deletions(-)
Signature · 1 line
Clément Léger