vsock/test: use send_buf() in vsock_test.c
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 15 Sep 2023 12:14:51 +0000 (14:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Sep 2023 16:42:37 +0000 (17:42 +0100)
commit2a8548a9bb4c4ba14badd6be72f1d2b87a6bddc0
tree93d5186619bc02190d3f18a1010aee016a8c8499
parent12329bd51fdcde211fd9c76015ded4db3458ba8a
vsock/test: use send_buf() in vsock_test.c

We have a very common pattern used in vsock_test that we can
now replace with the new send_buf().

This allows us to reuse the code we already had to check the
actual return value and wait for all the bytes to be sent with
an appropriate timeout.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Arseniy Krasnov <avkrasnov@salutedevices.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/vsock/vsock_test.c