]> git.baikalelectronics.ru Git - kernel.git/commit
vsock: add 'transport' member in the struct vsock_sock
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 14 Nov 2019 09:57:39 +0000 (10:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 02:12:18 +0000 (18:12 -0800)
commit4ab0bb769f2a53099b07f6774a26c3c495bc78de
tree13e3f73b9d1c564c57f4a531d4f1602546f48d9e
parent500faec08b81ecb033b4797176cf058f4e6b7c87
vsock: add 'transport' member in the struct vsock_sock

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.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/af_vsock.h
net/vmw_vsock/af_vsock.c