vsock/test: add send_buf() utility function
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 15 Sep 2023 12:14:50 +0000 (14:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Sep 2023 16:42:37 +0000 (17:42 +0100)
commit12329bd51fdcde211fd9c76015ded4db3458ba8a
treee577faf5a470df529b2805dd4c9b8dbe99a92de8
parenta0bcb83577165b0d6fb948c8ab207a1dd7146f6f
vsock/test: add send_buf() utility function

Move the code of send_byte() out in a new utility function that
can be used to send a generic buffer.

This new function can be used when we need to send a custom
buffer and not just a single 'A' byte.

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/util.c
tools/testing/vsock/util.h