summaryrefslogtreecommitdiff
path: root/tools/testing/vsock/util.h
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2023-09-15 14:14:49 +0200
committerDavid S. Miller <davem@davemloft.net>2023-09-17 17:42:37 +0100
commita0bcb83577165b0d6fb948c8ab207a1dd7146f6f (patch)
tree62f2c0ee6e94f8d50b12e55e2997ccf2b3ff0765 /tools/testing/vsock/util.h
parenta8ed71a27ef524c808b518031feac811ed3e741c (diff)
vsock/test: use recv_buf() in vsock_test.c
We have a very common pattern used in vsock_test that we can now replace with the new recv_buf(). This allows us to reuse the code we already had to check the actual return value and wait for all bytes to be received 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>
Diffstat (limited to 'tools/testing/vsock/util.h')
0 files changed, 0 insertions, 0 deletions