mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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 <jon.maloy@ericsson.com> Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2d0d21c12d
commit
14c04493cb
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user