tipc: make tipc node table aware of net namespace
Global variables associated with node table are below: - node table list (node_htable) - node hash table list (tipc_node_list) - node table lock (node_list_lock) - node number counter (tipc_num_nodes) - node link number counter (tipc_num_links) To make node table support namespace, above global variables must be moved to tipc_net structure in order to keep secret for different namespaces. As a consequence, these variables are allocated and initialized when namespace is created, and deallocated when namespace is destroyed. After the change, functions associated with these variables have to utilize a namespace pointer to access them. So adding namespace pointer as a parameter of these functions is the major change made in the commit. 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>
Showing
- net/tipc/addr.h 2 additions, 0 deletionsnet/tipc/addr.h
- net/tipc/bcast.c 12 additions, 12 deletionsnet/tipc/bcast.c
- net/tipc/bcast.h 2 additions, 2 deletionsnet/tipc/bcast.h
- net/tipc/bearer.c 14 additions, 11 deletionsnet/tipc/bearer.c
- net/tipc/bearer.h 2 additions, 2 deletionsnet/tipc/bearer.h
- net/tipc/config.c 13 additions, 8 deletionsnet/tipc/config.c
- net/tipc/core.c 3 additions, 1 deletionnet/tipc/core.c
- net/tipc/core.h 9 additions, 0 deletionsnet/tipc/core.h
- net/tipc/discover.c 2 additions, 2 deletionsnet/tipc/discover.c
- net/tipc/link.c 66 additions, 41 deletionsnet/tipc/link.c
- net/tipc/link.h 14 additions, 10 deletionsnet/tipc/link.h
- net/tipc/name_distr.c 31 additions, 26 deletionsnet/tipc/name_distr.c
- net/tipc/name_distr.h 5 additions, 5 deletionsnet/tipc/name_distr.h
- net/tipc/name_table.c 9 additions, 7 deletionsnet/tipc/name_table.c
- net/tipc/name_table.h 5 additions, 3 deletionsnet/tipc/name_table.h
- net/tipc/net.c 6 additions, 5 deletionsnet/tipc/net.c
- net/tipc/net.h 1 addition, 1 deletionnet/tipc/net.h
- net/tipc/node.c 69 additions, 61 deletionsnet/tipc/node.c
- net/tipc/node.h 19 additions, 16 deletionsnet/tipc/node.h
- net/tipc/socket.c 43 additions, 29 deletionsnet/tipc/socket.c
Loading
Please register or sign in to comment