mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
tipc: name tipc name table support net namespace
TIPC name table is used to store the mapping relationship between TIPC service name and socket port ID. When tipc supports namespace, it allows users to publish service names only owned by a certain namespace. Therefore, every namespace must have its private name table to prevent service names published to one namespace from being contaminated by other service names in another namespace. Therefore, The name table global variable (ie, nametbl) and its lock must be moved to tipc_net structure, and a parameter of namespace must be added for necessary functions so that they can obtain name table variable defined in tipc_net structure. Signed-off-by: Ying Xue <ying.xue@windriver.com> Tested-by: Tero Aho <Tero.Aho@coriant.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
e05b31f4bf
commit
4ac1c8d0ee
@@ -116,7 +116,7 @@ int tipc_net_start(struct net *net, u32 addr)
|
||||
int res;
|
||||
|
||||
tipc_own_addr = addr;
|
||||
tipc_named_reinit();
|
||||
tipc_named_reinit(net);
|
||||
tipc_sk_reinit(net);
|
||||
res = tipc_bclink_init(net);
|
||||
if (res)
|
||||
|
||||
Reference in New Issue
Block a user