vsock/test: Introduce vsock_wait_sent() helper
authorMichal Luczaj <mhal@rbox.co>
Wed, 21 May 2025 23:18:23 +0000 (01:18 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 27 May 2025 09:05:21 +0000 (11:05 +0200)
commite78e0596c762609ee5a92bd9d38351694b52f249
treea64765bef42f3a2c1bee01b8a74375bbba34086e
parent5ec40864aaecc4bd66fe67541d4a41091ed664a5
vsock/test: Introduce vsock_wait_sent() helper

Distill the virtio_vsock_sock::bytes_unsent checking loop (ioctl SIOCOUTQ)
and move it to utils. Tweak the comment.

Signed-off-by: Michal Luczaj <mhal@rbox.co>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://patch.msgid.link/20250522-vsock-linger-v6-3-2ad00b0e447e@rbox.co
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/vsock/util.c
tools/testing/vsock/util.h
tools/testing/vsock/vsock_test.c