All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/3] vsock: SO_INQ for stream sockets
@ 2026-10-16 13:27 David Carlier
  2026-10-16 13:27 ` [PATCH net-next v3 1/3] vsock: move SOL_SOCKET options to vsock_sol_socket_setsockopt() David Carlier
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: David Carlier @ 2026-10-16 13:27 UTC (permalink / raw)
  To: netdev
  Cc: sgarzare, bobbyeshleman, davem, edumazet, kuba, pabeni, horms,
	virtualization, linux-kernel, David Carlier

This is the follow-up announced in the receive queue hint series [1]:
SO_INQ and SCM_INQ for AF_VSOCK stream sockets, as AF_UNIX has.

Patch 1 moves the SOL_SOCKET option handling to a helper without
functional change, patch 2 adds SO_INQ and patch 3 covers it in
vsock_test.

The value is the one SIOCINQ returns, so on Hyper-V it covers the
current packet only. Accepted sockets inherit the flag from the
listener, and the sockmap receive path does not report it.

Tested over loopback with vsock_test and vsock_uring_test.

v3:
 - split the SOL_SOCKET refactor out of the SO_INQ patch (Stefano)
 - rename vsock_custom_sockopt() to vsock_sol_socket_custom() (Stefano)
 - parse the value in vsock_sol_socket_get_bool() after the per option
   checks, so SO_INQ on SOCK_SEQPACKET always fails with ENOPROTOOPT
   (Stefano)
 - reflow the comment to 80 columns (Stefano)
 - carry Reviewed-by and Acked-by on the test patch; Bobby's Acked-by
   on the v2 kernel patch is dropped since it was split and reworked
v2: https://lore.kernel.org/netdev/20261015154334.3217358-1-devnexen@gmail.com/
v1: https://lore.kernel.org/netdev/20261012235524.41468-1-devnexen@gmail.com/

[1] https://lore.kernel.org/netdev/20260923184008.153541-1-devnexen@gmail.com/

David Carlier (3):
  vsock: move SOL_SOCKET options to vsock_sol_socket_setsockopt()
  vsock: support SO_INQ on stream sockets
  vsock/test: cover SO_INQ

 include/net/af_vsock.h           |   1 +
 net/vmw_vsock/af_vsock.c         | 125 ++++++++++----
 tools/testing/vsock/vsock_test.c | 279 +++++++++++++++++++++++++++++++
 3 files changed, 377 insertions(+), 28 deletions(-)


base-commit: a4057f51efc2b74ddf46721e83f45e9efb13649d
-- 
2.55.0


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

end of thread, other threads:[~2026-10-16 13:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-16 13:27 [PATCH net-next v3 0/3] vsock: SO_INQ for stream sockets David Carlier
2026-10-16 13:27 ` [PATCH net-next v3 1/3] vsock: move SOL_SOCKET options to vsock_sol_socket_setsockopt() David Carlier
2026-10-16 13:36   ` sashiko-bot
2026-10-16 13:27 ` [PATCH net-next v3 2/3] vsock: support SO_INQ on stream sockets David Carlier
2026-10-16 13:36   ` sashiko-bot
2026-10-16 13:27 ` [PATCH net-next v3 3/3] vsock/test: cover SO_INQ David Carlier
2026-10-16 13:36   ` sashiko-bot

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.