diff options
author | Ying Xue <ying.xue@windriver.com> | 2015-01-09 02:27:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-12 16:24:32 -0500 |
commit | 7f9f95d9d9bcdf253c4149a157b096958013eceb (patch) | |
tree | 779858049250f786a0b1b2d89482f3cdccd9617f /net/tipc/bcast.h | |
parent | f2f9800d4955a96d92896841d8ba9b04201deaa1 (diff) |
tipc: make bearer list support net namespace
Bearer list defined as a global variable is used to store bearer
instances. When tipc supports net namespace, bearers created in
one namespace must be isolated with others allocated in other
namespaces, which requires us that the bearer list(bearer_list)
must be moved to tipc_net structure. As a result, a net namespace
pointer has to be passed to functions which access the bearer list.
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>
Diffstat (limited to 'net/tipc/bcast.h')
-rw-r--r-- | net/tipc/bcast.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/tipc/bcast.h b/net/tipc/bcast.h index fd0d17a76493..692efb662253 100644 --- a/net/tipc/bcast.h +++ b/net/tipc/bcast.h | |||
@@ -84,8 +84,8 @@ static inline int tipc_nmap_equal(struct tipc_node_map *nm_a, | |||
84 | void tipc_port_list_add(struct tipc_port_list *pl_ptr, u32 port); | 84 | void tipc_port_list_add(struct tipc_port_list *pl_ptr, u32 port); |
85 | void tipc_port_list_free(struct tipc_port_list *pl_ptr); | 85 | void tipc_port_list_free(struct tipc_port_list *pl_ptr); |
86 | 86 | ||
87 | int tipc_bclink_init(void); | 87 | int tipc_bclink_init(struct net *net); |
88 | void tipc_bclink_stop(void); | 88 | void tipc_bclink_stop(struct net *net); |
89 | void tipc_bclink_set_flags(unsigned int flags); | 89 | void tipc_bclink_set_flags(unsigned int flags); |
90 | void tipc_bclink_add_node(u32 addr); | 90 | void tipc_bclink_add_node(u32 addr); |
91 | void tipc_bclink_remove_node(u32 addr); | 91 | void tipc_bclink_remove_node(u32 addr); |
@@ -99,7 +99,8 @@ void tipc_bclink_update_link_state(struct net *net, struct tipc_node *n_ptr, | |||
99 | int tipc_bclink_stats(char *stats_buf, const u32 buf_size); | 99 | int tipc_bclink_stats(char *stats_buf, const u32 buf_size); |
100 | int tipc_bclink_reset_stats(void); | 100 | int tipc_bclink_reset_stats(void); |
101 | int tipc_bclink_set_queue_limits(u32 limit); | 101 | int tipc_bclink_set_queue_limits(u32 limit); |
102 | void tipc_bcbearer_sort(struct tipc_node_map *nm_ptr, u32 node, bool action); | 102 | void tipc_bcbearer_sort(struct net *net, struct tipc_node_map *nm_ptr, |
103 | u32 node, bool action); | ||
103 | uint tipc_bclink_get_mtu(void); | 104 | uint tipc_bclink_get_mtu(void); |
104 | int tipc_bclink_xmit(struct net *net, struct sk_buff_head *list); | 105 | int tipc_bclink_xmit(struct net *net, struct sk_buff_head *list); |
105 | void tipc_bclink_wakeup_users(struct net *net); | 106 | void tipc_bclink_wakeup_users(struct net *net); |