All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND v2 0/3] Introduce getsockname io_uring_cmd
@ 2025-11-21 16:09 Gabriel Krisman Bertazi
  2025-11-21 16:09 ` [PATCH v2 1/3] socket: Unify getsockname and getpeername implementation Gabriel Krisman Bertazi
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Gabriel Krisman Bertazi @ 2025-11-21 16:09 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Gabriel Krisman Bertazi, netdev, io-uring, Jakub Kicinski,
	David S. Miller, Eric Dumazet, Kuniyuki Iwashima, Paolo Abeni,
	Willem de Bruijn, Simon Horman

[Resending v2 because silly git-format-patch doesn't To from
the branch description, only Cc, so it was missing Jen]s.

Since V1:
  - minor style fixes
  - Resend with (more) maintainers cc'ed
  - rebased to axboe/for-next.
--

This feature has been requested a few times in the liburing repository
and Discord channels, such as in [1,2].  If anything, it also helps
solve a long standing issue in the bind-listen test that results in
occasional test failures.

The patchset is divided in three parts: Patch 1 merges the getpeername
and getsockname implementation in the network layer, making further
patches easier; Patch 2 splits out a helper used by io_uring, like done
for other network commands; Finally, patch 3 plumbs the new command in
io_uring.

The syscall path was tested by booting a Linux distro, which does all
sorts of getsockname/getpeername syscalls.  The io_uring side was tested
with a couple of new liburing subtests available at:

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

Based on top of Jens' for-next.

[1] https://github.com/axboe/liburing/issues/1356
[2] https://discord.com/channels/1241076672589991966/1241076672589991970/1429975797912830074

---

CC: netdev@vger.kernel.org
CC: io-uring@vger.kernel.org
CC: Jakub Kicinski <kuba@kernel.org>
CC: David S. Miller <davem@davemloft.net>
CC: Eric Dumazet <edumazet@google.com>
CC: Kuniyuki Iwashima <kuniyu@google.com>
CC: Paolo Abeni <pabeni@redhat.com>
CC: Willem de Bruijn <willemb@google.com>
CC: Simon Horman <horms@kernel.org>

Gabriel Krisman Bertazi (3):
  socket: Unify getsockname and getpeername implementation
  socket: Split out a getsockname helper for io_uring
  io_uring: Introduce getsockname io_uring cmd

 include/linux/socket.h        |  6 +--
 include/uapi/linux/io_uring.h |  1 +
 io_uring/cmd_net.c            | 23 ++++++++++++
 net/compat.c                  |  4 +-
 net/socket.c                  | 69 +++++++++++------------------------
 5 files changed, 51 insertions(+), 52 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH v2 0/3] Introduce getsockname io_uring_cmd
@ 2025-11-20 21:58 Gabriel Krisman Bertazi
  2025-11-20 21:58 ` [PATCH v2 1/3] socket: Unify getsockname and getpeername implementation Gabriel Krisman Bertazi
  0 siblings, 1 reply; 8+ messages in thread
From: Gabriel Krisman Bertazi @ 2025-11-20 21:58 UTC (permalink / raw)
  Cc: Gabriel Krisman Bertazi, netdev, io-uring, Jakub Kicinski,
	David S. Miller, Eric Dumazet, Kuniyuki Iwashima, Paolo Abeni,
	Willem de Bruijn, Simon Horman

Since V1:
  - minor style fixes
  - Resend with (more) maintainers cc'ed
  - rebased to axboe/for-next.
--

This feature has been requested a few times in the liburing repository
and Discord channels, such as in [1,2].  If anything, it also helps
solve a long standing issue in the bind-listen test that results in
occasional test failures.

The patchset is divided in three parts: Patch 1 merges the getpeername
and getsockname implementation in the network layer, making further
patches easier; Patch 2 splits out a helper used by io_uring, like done
for other network commands; Finally, patch 3 plumbs the new command in
io_uring.

The syscall path was tested by booting a Linux distro, which does all
sorts of getsockname/getpeername syscalls.  The io_uring side was tested
with a couple of new liburing subtests available at:

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

Based on top of Jens' for-next.

[1] https://github.com/axboe/liburing/issues/1356
[2] https://discord.com/channels/1241076672589991966/1241076672589991970/1429975797912830074

---
To: Jens Axboe <axboe@kernel.dk>
CC: netdev@vger.kernel.org
CC: io-uring@vger.kernel.org
CC: Jakub Kicinski <kuba@kernel.org>
CC: David S. Miller <davem@davemloft.net>
CC: Eric Dumazet <edumazet@google.com>
CC: Kuniyuki Iwashima <kuniyu@google.com>
CC: Paolo Abeni <pabeni@redhat.com>
CC: Willem de Bruijn <willemb@google.com>
CC: Simon Horman <horms@kernel.org>
Base: axboe/for-next

Gabriel Krisman Bertazi (3):
  socket: Unify getsockname and getpeername implementation
  socket: Split out a getsockname helper for io_uring
  io_uring: Introduce getsockname io_uring cmd

 include/linux/socket.h        |  6 +--
 include/uapi/linux/io_uring.h |  1 +
 io_uring/cmd_net.c            | 23 ++++++++++++
 net/compat.c                  |  4 +-
 net/socket.c                  | 69 +++++++++++------------------------
 5 files changed, 51 insertions(+), 52 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-11-22  2:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-21 16:09 [PATCH RESEND v2 0/3] Introduce getsockname io_uring_cmd Gabriel Krisman Bertazi
2025-11-21 16:09 ` [PATCH v2 1/3] socket: Unify getsockname and getpeername implementation Gabriel Krisman Bertazi
2025-11-22  1:20   ` Jakub Kicinski
2025-11-22  2:14   ` Kuniyuki Iwashima
2025-11-21 16:09 ` [PATCH v2 2/3] socket: Split out a getsockname helper for io_uring Gabriel Krisman Bertazi
2025-11-22  2:15   ` Kuniyuki Iwashima
2025-11-21 16:09 ` [PATCH v2 3/3] io_uring: Introduce getsockname io_uring cmd Gabriel Krisman Bertazi
  -- strict thread matches above, loose matches on Subject: below --
2025-11-20 21:58 [PATCH v2 0/3] Introduce getsockname io_uring_cmd Gabriel Krisman Bertazi
2025-11-20 21:58 ` [PATCH v2 1/3] socket: Unify getsockname and getpeername implementation Gabriel Krisman Bertazi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.