Skip to content

implement vectored registered buffers for sendzc

Pavel Begunkov io-uring 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4io_uring/net: introduce io_kmsg_set_iovecio_uring/net.c+12 -100 replies
2/4io_uring/net: allow mixed bvec/iovec cachingio_uring/net.c io_uring/net.h+38 -330 replies
3/4io_uring: vectored registered buffer importio_uring/rsrc.c io_uring/rsrc.h+63 -00 replies
4/4io_uring/net: sendzc with vectored fixed buffersio_uring/net.c+45 -20 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/4] implement vectored registered buffers for sendzc

Allow registered buffers to be used with zerocopy sendmsg, where the passed iovec becomes a scatter list into the registered buffer specified by sqe->buf_index. See patches 3 and 4 for more details.

To get performance out of it, it'll need a bit more work on top for optimising allocations and cleaning up send setups. We can also implement it for non zerocopy variants and reads/writes in the future.

Tested by enabling it in test/send-zerocopy.c, which checks payloads, and exercises lots of corner cases, especially around send sizes, offsets and non aligned registered buffers.

Pavel Begunkov (4):
io_uring/net: introduce io_kmsg_set_iovec io_uring/net: allow mixed bvec/iovec caching
io_uring: vectored registered buffer import io_uring/net: sendzc with vectored fixed buffers

 io_uring/net.c  | 132 +++++++++++++++++++++++++++++++++---------------
 io_uring/net.h  |   4 +-
 io_uring/rsrc.c |  60 ++++++++++++++++++++++
 io_uring/rsrc.h |   3 ++
 4 files changed, 156 insertions(+), 43 deletions(-)
Signature · 1 line
2.46.0