mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] io_uring/net: Add bundle support for multishot recvmsg
@ 2026-10-22 20:20 Clément Léger
  2026-10-22 20:20 ` [RFC PATCH 1/2] io_uring/net: Factor out receive buffer selection Clément Léger
  2026-10-22 20:20 ` [RFC PATCH 2/2] io_uring/net: Add bundle support for multishot recvmsg Clément Léger
  0 siblings, 2 replies; 3+ messages in thread
From: Clément Léger @ 2026-10-22 20:20 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Clément Léger, io-uring, linux-kernel

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(-)

-- 
Clément Léger

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-22 20:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22 20:20 [RFC PATCH 0/2] io_uring/net: Add bundle support for multishot recvmsg Clément Léger
2026-10-22 20:20 ` [RFC PATCH 1/2] io_uring/net: Factor out receive buffer selection Clément Léger
2026-10-22 20:20 ` [RFC PATCH 2/2] io_uring/net: Add bundle support for multishot recvmsg Clément Léger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®