Skip to content

add basic zero copy receive support

David Wei io-uring 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v13 patches 7 repliesSuperseded

Changes in v2 from the cover letter

--------------
* Split out linux/io_uring.h header sync changes
* Move exporting io_uring_register_ifq() to LIBURING_2.10 section

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4liburing: sync io_uring headerssrc/include/liburing/io_uring.h+6 -20 replies
2/4zcrx: sync io_uring headerssrc/include/liburing/io_uring.h+54 -00 replies
3/4zcrx: add basic supportsrc/include/liburing.h src/liburing-ffi.map src/liburing.map +1 more+22 -00 replies
4/4zcrx: add unit testtest/Makefile test/zcrx.c+919 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH liburing v2 0/4] add basic zero copy receive support

Add basic support for io_uring zero copy receive in liburing. Besides the mandatory syncing of necessary liburing.h headers, add a thin wrapper around the registration op and a unit test.

Users still need to setup by hand e.g. mmap, setup the registration structs, do the registration and then setup the refill queue struct io_uring_zcrx_rq.

In the future, I'll add code to hide the implementation details. But for now, this unblocks the kernel selftest.

Changes in v2:
--------------
* Split out linux/io_uring.h header sync changes
* Move exporting io_uring_register_ifq() to LIBURING_2.10 section

David Wei (4):
liburing: sync io_uring headers
zcrx: sync io_uring headers
zcrx: add basic support
zcrx: add unit test

 src/include/liburing.h          |  12 +
 src/include/liburing/io_uring.h |  62 ++-
 src/liburing-ffi.map            |   2 +
 src/liburing.map                |   2 +
 src/register.c                  |   6 +
 test/Makefile                   |   1 +
 test/zcrx.c                     | 918 ++++++++++++++++++++++++++++++++
 7 files changed, 1001 insertions(+), 2 deletions(-)
 create mode 100644 test/zcrx.c
Signature · 1 line
2.43.5