diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2017-10-05 22:46:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-06 03:44:17 +0200 |
commit | 44f209807ee87a5eddf6c0432f3fb63cec27bad8 (patch) | |
tree | afc6fef11449618059677752ffae1e8868c6aefb /include/net/af_vsock.h | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-44f209807ee87a5eddf6c0432f3fb63cec27bad8.tar.xz linux-44f209807ee87a5eddf6c0432f3fb63cec27bad8.zip |
VSOCK: export socket tables for sock_diag interface
The socket table symbols need to be exported from vsock.ko so that the
vsock_diag.ko module will be able to traverse sockets.
Signed-off-by: Stefan Hajnoczi <stefanha@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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h index f9fb566e75cf..30cba806e344 100644 --- a/include/net/af_vsock.h +++ b/include/net/af_vsock.h @@ -27,6 +27,11 @@ #define LAST_RESERVED_PORT 1023 +#define VSOCK_HASH_SIZE 251 +extern struct list_head vsock_bind_table[VSOCK_HASH_SIZE + 1]; +extern struct list_head vsock_connected_table[VSOCK_HASH_SIZE]; +extern spinlock_t vsock_table_lock; + #define vsock_sk(__sk) ((struct vsock_sock *)__sk) #define sk_vsock(__vsk) (&(__vsk)->sk) |