aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/core.h
diff options
context:
space:
mode:
authorJon Maloy <[email protected]>2017-10-13 09:04:17 +0000
committerDavid S. Miller <[email protected]>2017-10-13 15:46:00 +0000
commit14c04493cb77bc38404dbcb39d5ccbb667831ad7 (patch)
tree24f418f63c5e134c034579f2c01bc44278425d86 /net/tipc/core.h
parentselftests: rtnetlink: add a small macsec test case (diff)
downloadkernel-14c04493cb77bc38404dbcb39d5ccbb667831ad7.tar.gz
kernel-14c04493cb77bc38404dbcb39d5ccbb667831ad7.zip
tipc: add ability to order and receive topology events in driver
As preparation for introducing communication groups, we add the ability to issue topology subscriptions and receive topology events from kernel space. This will make it possible for group member sockets to keep track of other group members. Signed-off-by: Jon Maloy <[email protected]> Acked-by: Ying Xue <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/core.h')
-rw-r--r--net/tipc/core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/tipc/core.h b/net/tipc/core.h
index 5cc5398be722..964342689f2c 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -132,6 +132,11 @@ static inline struct list_head *tipc_nodes(struct net *net)
return &tipc_net(net)->node_list;
}
+static inline struct tipc_server *tipc_topsrv(struct net *net)
+{
+ return tipc_net(net)->topsrv;
+}
+
static inline unsigned int tipc_hashfn(u32 addr)
{
return addr & (NODE_HTABLE_SIZE - 1);