Re: [PATCH net-next v4 2/3] vsock: Move lingering logic to af_vsock core

2025-05-06 Thread Michal Luczaj
On 5/6/25 11:53, Stefano Garzarella wrote: > On Thu, May 01, 2025 at 10:05:23AM +0200, Michal Luczaj wrote: >> Lingering should be transport-independent in the long run. In preparation >> for supporting other transports, as well the linger on shutdown(), move >> code to core. >> >> Generalize by qu

Re: [PATCH net-next v4 2/3] vsock: Move lingering logic to af_vsock core

2025-05-06 Thread Stefano Garzarella
On Thu, May 01, 2025 at 10:05:23AM +0200, Michal Luczaj wrote: Lingering should be transport-independent in the long run. In preparation for supporting other transports, as well the linger on shutdown(), move code to core. Generalize by querying vsock_transport::unsent_bytes(), guard against the

[PATCH net-next v4 2/3] vsock: Move lingering logic to af_vsock core

2025-05-01 Thread Michal Luczaj
Lingering should be transport-independent in the long run. In preparation for supporting other transports, as well the linger on shutdown(), move code to core. Generalize by querying vsock_transport::unsent_bytes(), guard against the callback being unimplemented. Do not pass sk_lingertime explicit