Skip to content

RFC liburing: Add sendto(2) and recvfrom(2) support

Ammar Faizi io-uring lkml netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5.gitignore: Add `/test/xattr` and `/test/getdents`.gitignore+2 -00 replies
2/5io_uring.h: Add `IORING_OP_SENDTO` and `IORING_OP_RECVFROM`src/include/liburing/io_uring.h+2 -00 replies
3/5liburing.h: Add `io_uring_prep_{sendto,sendto}` helpersrc/include/liburing.h+22 -00 replies
4/5test: Add sendto_recvfrom test program.gitignore test/Makefile test/sendto_recvfrom.c+387 -00 replies
5/5man: Add `io_uring_prep_{sendto,recvfrom}` docsman/io_uring_prep_recvfrom.3 man/io_uring_prep_sendto.3+67 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchNugra
1/5
2/5
3/5
4/5T-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH liburing v1 0/5] liburing: Add sendto(2) and recvfrom(2) support

Hello,

I submitted an RFC patchset to add sendto(2) and recvfrom(2) support for io_uring. This RFC patchset adds the support for the liburing.

There are 5 patches in this series. 4 from me. 1 from Nugra.

For PATCH 1/5, it is just a .gitignore clean up.

## Changes Summary
- Update io_uring.h header (sync with the kernel).

- Add io_uring_prep_{sendto,sendto} functions.

- Add test program for IORING_OP_SENDTO and IORING_OP_RECVFROM.

- Add documentation for io_uring_prep_{sendto,sendto} functions.

## How to test

This patchset is based on branch "xattr-getdents64" commit:

18d71076f6c97e1b25aa0e3b0e12a913ec4717fa ("src/include/liburing.h: style cleanups")

---

Ammar Faizi (4):
.gitignore: Add /test/xattr and /test/getdents io_uring.h: Add IORING_OP_SENDTO and IORING_OP_RECVFROM liburing.h: Add io_uring_prep_{sendto,sendto} helper
test: Add sendto_recvfrom test program

Nugra (1):
man: Add io_uring_prep_{sendto,recvfrom} docs

 .gitignore                      |   3 +
 man/io_uring_prep_recvfrom.3    |  33 +++
 man/io_uring_prep_sendto.3      |  34 +++
 src/include/liburing.h          |  22 ++
 src/include/liburing/io_uring.h |   2 +
 test/Makefile                   |   2 +
 test/sendto_recvfrom.c          | 384 ++++++++++++++++++++++++++++++++
 7 files changed, 480 insertions(+)
 create mode 100644 man/io_uring_prep_recvfrom.3
 create mode 100644 man/io_uring_prep_sendto.3
 create mode 100644 test/sendto_recvfrom.c

base-commit: 18d71076f6c97e1b25aa0e3b0e12a913ec4717fa

Signature · 1 line
2.32.0