mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] vsock: SOCK_LINGER rework
@ 2025-04-07 18:41 Michal Luczaj
  2025-04-07 18:41 ` [PATCH net-next 1/2] vsock: Linger on unsent data Michal Luczaj
  2025-04-07 18:41 ` [PATCH net-next 2/2] vsock/test: Expand linger test to ensure close() does not misbehave Michal Luczaj
  0 siblings, 2 replies; 9+ messages in thread
From: Michal Luczaj @ 2025-04-07 18:41 UTC (permalink / raw)
  To: Stefano Garzarella, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Simon Horman, Michael S. Tsirkin,
	Jason Wang, Xuan Zhuo, Eugenio Pérez, Stefan Hajnoczi
  Cc: virtualization, netdev, linux-kernel, kvm, Michal Luczaj

Change vsock's lingerning to wait, on close() and shutdown(), until all
data is sent, i.e. until workers picked all the packets for processing.

Changes in v1:
- Do not assume `unsent_bytes()` is implemented by all transports [Stefano]
- Link to v0: https://lore.kernel.org/netdev/df2d51fd-03e7-477f-8aea-938446f47864@rbox.co/

Signed-off-by: Michal Luczaj <mhal@rbox.co>
---
Michal Luczaj (2):
      vsock: Linger on unsent data
      vsock/test: Expand linger test to ensure close() does not misbehave

 include/net/af_vsock.h                  |  1 +
 net/vmw_vsock/af_vsock.c                | 25 +++++++++++++++++++++++++
 net/vmw_vsock/virtio_transport_common.c | 25 +++----------------------
 tools/testing/vsock/vsock_test.c        | 30 +++++++++++++++++++++++++++---
 4 files changed, 56 insertions(+), 25 deletions(-)
---
base-commit: 61f96e684edd28ca40555ec49ea1555df31ba619
change-id: 20250304-vsock-linger-9026e5f9986c

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


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

end of thread, other threads:[~2025-04-21 21:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-07 18:41 [PATCH net-next 0/2] vsock: SOCK_LINGER rework Michal Luczaj
2025-04-07 18:41 ` [PATCH net-next 1/2] vsock: Linger on unsent data Michal Luczaj
2025-04-10 10:51   ` Paolo Abeni
2025-04-11 10:32     ` Stefano Garzarella
2025-04-16 12:36       ` Michal Luczaj
2025-04-18 10:07         ` Stefano Garzarella
2025-04-11 13:43   ` Stefano Garzarella
2025-04-21 21:52     ` Michal Luczaj
2025-04-07 18:41 ` [PATCH net-next 2/2] vsock/test: Expand linger test to ensure close() does not misbehave Michal Luczaj

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®