Re: [PATCH net-next v5 3/5] vsock/test: Introduce vsock_wait_sent() helper

2025-05-21 Thread Michal Luczaj
On 5/21/25 17:01, Stefano Garzarella wrote: > On Wed, May 21, 2025 at 12:55:21AM +0200, Michal Luczaj wrote: >> ... >> +/* Wait until transport reports no data left to be sent. >> + * Return non-zero if transport does not implement the unsent_bytes() >> callback. >> + */ >> +int vsock_wait_sent(in

Re: [PATCH net-next v5 3/5] vsock/test: Introduce vsock_wait_sent() helper

2025-05-21 Thread Stefano Garzarella
On Wed, May 21, 2025 at 12:55:21AM +0200, Michal Luczaj wrote: Distill the virtio_vsock_sock::bytes_unsent checking loop (ioctl SIOCOUTQ) and move it to utils. Tweak the comment. Signed-off-by: Michal Luczaj --- tools/testing/vsock/util.c | 25 + tools/testing/vsock