mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] vsock: Fix SO_ZEROCOPY on accept()ed vsocks
@ 2025-12-29 19:43 Michal Luczaj
  2025-12-29 19:43 ` [PATCH net v2 1/2] vsock: Make accept()ed sockets use custom setsockopt() Michal Luczaj
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michal Luczaj @ 2025-12-29 19:43 UTC (permalink / raw)
  To: Stefano Garzarella, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Simon Horman, Arseniy Krasnov
  Cc: virtualization, netdev, linux-kernel, Michal Luczaj

vsock has its own handling of setsockopt(SO_ZEROCOPY). Which works just
fine unless socket comes from a call to accept(). Because
SOCK_CUSTOM_SOCKOPT flag is missing, attempting to set the option always
results in errno EOPNOTSUPP.

Signed-off-by: Michal Luczaj <mhal@rbox.co>
---
Changes in v2:
- Fix: set socket flags in a consistent way [Stefano]
- Test: simplify sync by removing sync [Stefano]
- Link to v1: https://lore.kernel.org/r/20251223-vsock-child-sock-custom-sockopt-v1-0-4654a75d0f58@rbox.co

---
Michal Luczaj (2):
      vsock: Make accept()ed sockets use custom setsockopt()
      vsock/test: Test setting SO_ZEROCOPY on accept()ed socket

 net/vmw_vsock/af_vsock.c         |  4 ++++
 tools/testing/vsock/vsock_test.c | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)
---
base-commit: 58fc7342b529803d3c221101102fe913df7adb83
change-id: 20251222-vsock-child-sock-custom-sockopt-23b779c30c8f

Best regards,
-- 
Michal Luczaj <mhal@rbox.co>


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

end of thread, other threads:[~2026-01-06  0:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-29 19:43 [PATCH net v2 0/2] vsock: Fix SO_ZEROCOPY on accept()ed vsocks Michal Luczaj
2025-12-29 19:43 ` [PATCH net v2 1/2] vsock: Make accept()ed sockets use custom setsockopt() Michal Luczaj
2025-12-29 19:43 ` [PATCH net v2 2/2] vsock/test: Test setting SO_ZEROCOPY on accept()ed socket Michal Luczaj
2026-01-06  0:20 ` [PATCH net v2 0/2] vsock: Fix SO_ZEROCOPY on accept()ed vsocks patchwork-bot+netdevbpf

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

all inboxes | Powered by JetHome®