[RFC PATCH 04/13] vsock: add 'transport' member in the struct vsock_sock

Stefan Hajnoczi
Wed, 09 Oct 2019 11:46:41 -0000

On Fri, Sep 27, 2019 at 01:26:54PM +0200, Stefano Garzarella
wrote:
> As a preparation to support multiple transports, this patch adds
> the 'transport' member at the 'struct vsock_sock'.
> This new field is initialized during the creation in the
> __vsock_create() function.
>
> This patch also renames the global 'transport' pointer to
> 'transport_single', since for now we're only supporting a
single
> transport registered at run-time.
>
> Signed-off-by: Stefano Garzarella <sgarzare at redhat.com>
> ---
>  include/net/af_vsock.h   |  1 +
>  net/vmw_vsock/af_vsock.c | 56 +++++++++++++++++++++++++++-------------
>  2 files changed, 39 insertions(+), 18 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL:
<http://lists.linuxfoundation.org/pipermail/virtualization/attachments/20191009/6854aa51/attachment.sig>