linux/net/tipc
Ying Xue f2f9800d49 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>
2015-01-12 16:24:32 -05:00
..
Kconfig tipc: convert tipc reference table to use generic rhashtable 2015-01-08 19:47:14 -08:00
Makefile tipc: remove node subscription infrastructure 2014-11-26 12:30:16 -05:00
addr.c tipc: compress out gratuitous extra carriage returns 2012-04-30 15:53:56 -04:00
addr.h tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
bcast.c tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
bcast.h tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
bearer.c tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
bearer.h tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
config.c tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
config.h tipc: involve namespace infrastructure 2015-01-12 16:24:32 -05:00
core.c tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
core.h tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
discover.c tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
discover.h tipc: involve namespace infrastructure 2015-01-12 16:24:32 -05:00
eth_media.c tipc: improve and extend media address conversion functions 2014-05-14 15:19:48 -04:00
ib_media.c tipc: improve and extend media address conversion functions 2014-05-14 15:19:48 -04:00
link.c tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
link.h tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
log.c tipc: remove print_buf and deprecated log buffer code 2012-07-13 19:34:43 -04:00
msg.c tipc: involve namespace infrastructure 2015-01-12 16:24:32 -05:00
msg.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
name_distr.c tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
name_distr.h tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
name_table.c tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
name_table.h tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
net.c tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
net.h tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
netlink.c tipc: involve namespace infrastructure 2015-01-12 16:24:32 -05:00
netlink.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
node.c tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
node.h tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
server.c tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
server.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
socket.c tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
socket.h tipc: make tipc node table aware of net namespace 2015-01-12 16:24:32 -05:00
subscr.c tipc: remove unnecessary wrapper functions of kernel timer APIs 2015-01-12 16:24:31 -05:00
subscr.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
sysctl.c tipc: add name distributor resiliency queue 2014-09-01 17:51:48 -07:00