mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
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>
This commit is contained in:
parent
c93d3baa24
commit
f2f9800d49
21 changed files with 329 additions and 244 deletions
|
@ -49,9 +49,9 @@ int tipc_sock_create_local(int type, struct socket **res);
|
|||
void tipc_sock_release_local(struct socket *sock);
|
||||
int tipc_sock_accept_local(struct socket *sock, struct socket **newsock,
|
||||
int flags);
|
||||
int tipc_sk_rcv(struct sk_buff *buf);
|
||||
int tipc_sk_rcv(struct net *net, struct sk_buff *buf);
|
||||
struct sk_buff *tipc_sk_socks_show(void);
|
||||
void tipc_sk_mcast_rcv(struct sk_buff *buf);
|
||||
void tipc_sk_mcast_rcv(struct net *net, struct sk_buff *buf);
|
||||
void tipc_sk_reinit(void);
|
||||
int tipc_sk_rht_init(void);
|
||||
void tipc_sk_rht_destroy(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue