]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
VSOCK: extract connect/accept functions from vsock_diag_test.c
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 18 Dec 2019 18:07:01 +0000 (19:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Dec 2019 05:09:21 +0000 (21:09 -0800)
commit9bb8a29d28e01bf7dcdb67f71edbca9d3826d004
tree5ae4d12ca7d3281a62d1741b40ff6b11f44d94a4
parentdf7e0e0d237e5a4ee262befb11b599058a178966
VSOCK: extract connect/accept functions from vsock_diag_test.c

Many test cases will need to connect to the server or accept incoming
connections.  This patch extracts these operations into utility
functions that can be reused.

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