Skip to content

liburing: getsockname support

Gabriel Krisman Bertazi io-uring 4 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. v3 Latest4 patches 1 replyApplied
  2. v2 posting 2/24 patches 6 repliesSuperseded
  3. v2 posting 1/24 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches1 replySuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4liburing: Introduce getsockname operationsrc/include/liburing.h src/include/liburing/io_uring.h+14 -00 replies
2/4test/bind-listen.t: Use ephemeral porttest/bind-listen.c+79 -100 replies
3/4bind-listen.t: Add tests for getsocknametest/bind-listen.c+96 -30 replies
4/4man/io_uring_prep_getsockname.3: Add man pageman/io_uring_prep_getsockname.3+78 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH liburing v3 0/4] liburing: getsockname support

Changes since v2:

The main change from the previous iteration is ensuring the test won't regress in older kernels. This is done by installing the socket fd and fallbacking to the syscall. I avoided reverting to using a fixed port because that is flaky and would also require recreating the socket.

This is the library counterpart for the kernel support. Also available at:

https://github.com/krisman/liburing -b socket

---
CC: [email protected]
CC: [email protected]

Gabriel Krisman Bertazi (4):
liburing: Introduce getsockname operation
test/bind-listen.t: Use ephemeral port
bind-listen.t: Add tests for getsockname
man/io_uring_prep_getsockname.3: Add man page

 man/io_uring_prep_getsockname.3 |  78 +++++++++++++
 src/include/liburing.h          |  13 +++
 src/include/liburing/io_uring.h |   1 +
 test/bind-listen.c              | 188 +++++++++++++++++++++++++++++---
 4 files changed, 267 insertions(+), 13 deletions(-)
 create mode 100644 man/io_uring_prep_getsockname.3
Signature · 1 line
2.52.0