public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH liburing v3 0/4] liburing: getsockname support
@ 2025-12-03 19:52 Gabriel Krisman Bertazi
  2025-12-03 19:52 ` [PATCH liburing v3 1/4] liburing: Introduce getsockname operation Gabriel Krisman Bertazi
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Gabriel Krisman Bertazi @ 2025-12-03 19:52 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Gabriel Krisman Bertazi, io-uring, csander

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: io-uring@vger.kernel.org
CC: csander@purestorage.com

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

-- 
2.52.0


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

end of thread, other threads:[~2025-12-03 20:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-03 19:52 [PATCH liburing v3 0/4] liburing: getsockname support Gabriel Krisman Bertazi
2025-12-03 19:52 ` [PATCH liburing v3 1/4] liburing: Introduce getsockname operation Gabriel Krisman Bertazi
2025-12-03 19:52 ` [PATCH liburing v3 2/4] test/bind-listen.t: Use ephemeral port Gabriel Krisman Bertazi
2025-12-03 19:52 ` [PATCH liburing v3 3/4] bind-listen.t: Add tests for getsockname Gabriel Krisman Bertazi
2025-12-03 19:52 ` [PATCH liburing v3 4/4] man/io_uring_prep_getsockname.3: Add man page Gabriel Krisman Bertazi
2025-12-03 20:23 ` [PATCH liburing v3 0/4] liburing: getsockname support Jens Axboe

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