summaryrefslogtreecommitdiffstats
path: root/include/net/af_vsock.h
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2019-11-14 10:57:39 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-15 03:12:18 +0100
commitfe502c4a38d97e5f8b9d5602af1f07f5abc529d2 (patch)
tree13e3f73b9d1c564c57f4a531d4f1602546f48d9e /include/net/af_vsock.h
parentvsock: remove include/linux/vm_sockets.h file (diff)
downloadlinux-fe502c4a38d97e5f8b9d5602af1f07f5abc529d2.tar.xz
linux-fe502c4a38d97e5f8b9d5602af1f07f5abc529d2.zip
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>
Diffstat (limited to 'include/net/af_vsock.h')
-rw-r--r--include/net/af_vsock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h
index c660402b10f2..a5e1e134261d 100644
--- a/include/net/af_vsock.h
+++ b/include/net/af_vsock.h
@@ -27,6 +27,7 @@ extern spinlock_t vsock_table_lock;
struct vsock_sock {
/* sk must be the first member. */
struct sock sk;
+ const struct vsock_transport *transport;
struct sockaddr_vm local_addr;
struct sockaddr_vm remote_addr;
/* Links for the global tables of bound and connected sockets. */