1
0
Fork 0
alistair23-linux/net/tipc
Ying Xue e05b31f4bf tipc: make tipc socket support net namespace
Now tipc socket table is statically allocated as a global variable.
Through it, we can look up one socket instance with port ID, insert
a new socket instance to the table, and delete a socket from the
table. But when tipc supports net namespace, each namespace must own
its specific socket table. So the global variable of socket table
must be redefined in tipc_net structure. As a concequence, a new
socket table will be allocated when a new namespace is created, and
a socket table will be deallocated when namespace is destroyed.

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:33 -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: make tipc broadcast link support net namespace 2015-01-12 16:24:33 -05:00
addr.h tipc: make tipc broadcast link support net namespace 2015-01-12 16:24:33 -05:00
bcast.c tipc: make tipc broadcast link support net namespace 2015-01-12 16:24:33 -05:00
bcast.h tipc: make tipc broadcast link support net namespace 2015-01-12 16:24:33 -05:00
bearer.c tipc: make tipc broadcast link support net namespace 2015-01-12 16:24:33 -05:00
bearer.h tipc: make tipc broadcast link support net namespace 2015-01-12 16:24:33 -05:00
config.c tipc: make tipc socket support net namespace 2015-01-12 16:24:33 -05:00
config.h tipc: involve namespace infrastructure 2015-01-12 16:24:32 -05:00
core.c tipc: make tipc socket support net namespace 2015-01-12 16:24:33 -05:00
core.h tipc: make tipc socket support net namespace 2015-01-12 16:24:33 -05:00
discover.c tipc: make bearer list support 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 broadcast link support net namespace 2015-01-12 16:24:33 -05:00
link.h tipc: make bearer list support 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: make tipc broadcast link support net namespace 2015-01-12 16:24:33 -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 broadcast link support net namespace 2015-01-12 16:24:33 -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 socket support net namespace 2015-01-12 16:24:33 -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 broadcast link support net namespace 2015-01-12 16:24:33 -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 socket support net namespace 2015-01-12 16:24:33 -05:00
socket.h tipc: make tipc socket support net namespace 2015-01-12 16:24:33 -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