Re: [PATCH 2/5] VSOCK: extract connect/accept functions from vsock_diag_test.c

2017-12-14 Thread Stefan Hajnoczi
On Wed, Dec 13, 2017 at 04:32:58PM -0500, David Miller wrote: > From: Stefan Hajnoczi > Date: Wed, 13 Dec 2017 14:49:08 + > > > +#include > > +#include "../../../include/uapi/linux/vm_sockets.h" > > + > ... > > -#include "../../../include/uapi/linux/vm_sockets.h" > > #include "../../../inc

Re: [PATCH 2/5] VSOCK: extract connect/accept functions from vsock_diag_test.c

2017-12-13 Thread David Miller
From: Stefan Hajnoczi Date: Wed, 13 Dec 2017 14:49:08 + > +#include > +#include "../../../include/uapi/linux/vm_sockets.h" > + ... > -#include "../../../include/uapi/linux/vm_sockets.h" > #include "../../../include/uapi/linux/vm_sockets_diag.h" This really should never be necessary. As p

[PATCH 2/5] VSOCK: extract connect/accept functions from vsock_diag_test.c

2017-12-13 Thread Stefan Hajnoczi
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 --- tools/testing/vsock/util.h| 6 ++ tools/testing/vsock/util.c| 108 +