VSOCK: add send_byte()/recv_byte() test utilities
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 18 Dec 2019 18:07:03 +0000 (19:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Dec 2019 05:09:21 +0000 (21:09 -0800)
commit092f32ae628ed4874caf349cc0cfa0626cc3c5b0
tree3010c94e4a2c20438d1eab4f0362c3d7ac5c57a9
parent2f65b44e199c6521be8dbc7458250c74a86ce2aa
VSOCK: add send_byte()/recv_byte() test utilities

Test cases will want to transfer data.  This patch adds utility
functions to do this.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/vsock/util.c
tools/testing/vsock/util.h