aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/bcast.h
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2015-01-09 02:27:06 -0500
committerDavid S. Miller <davem@davemloft.net>2015-01-12 16:24:32 -0500
commit7f9f95d9d9bcdf253c4149a157b096958013eceb (patch)
tree779858049250f786a0b1b2d89482f3cdccd9617f /net/tipc/bcast.h
parentf2f9800d4955a96d92896841d8ba9b04201deaa1 (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.h7
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,
84void tipc_port_list_add(struct tipc_port_list *pl_ptr, u32 port); 84void tipc_port_list_add(struct tipc_port_list *pl_ptr, u32 port);
85void tipc_port_list_free(struct tipc_port_list *pl_ptr); 85void tipc_port_list_free(struct tipc_port_list *pl_ptr);
86 86
87int tipc_bclink_init(void); 87int tipc_bclink_init(struct net *net);
88void tipc_bclink_stop(void); 88void tipc_bclink_stop(struct net *net);
89void tipc_bclink_set_flags(unsigned int flags); 89void tipc_bclink_set_flags(unsigned int flags);
90void tipc_bclink_add_node(u32 addr); 90void tipc_bclink_add_node(u32 addr);
91void tipc_bclink_remove_node(u32 addr); 91void tipc_bclink_remove_node(u32 addr);
@@ -99,7 +99,8 @@ void tipc_bclink_update_link_state(struct net *net, struct tipc_node *n_ptr,
99int tipc_bclink_stats(char *stats_buf, const u32 buf_size); 99int tipc_bclink_stats(char *stats_buf, const u32 buf_size);
100int tipc_bclink_reset_stats(void); 100int tipc_bclink_reset_stats(void);
101int tipc_bclink_set_queue_limits(u32 limit); 101int tipc_bclink_set_queue_limits(u32 limit);
102void tipc_bcbearer_sort(struct tipc_node_map *nm_ptr, u32 node, bool action); 102void tipc_bcbearer_sort(struct net *net, struct tipc_node_map *nm_ptr,
103 u32 node, bool action);
103uint tipc_bclink_get_mtu(void); 104uint tipc_bclink_get_mtu(void);
104int tipc_bclink_xmit(struct net *net, struct sk_buff_head *list); 105int tipc_bclink_xmit(struct net *net, struct sk_buff_head *list);
105void tipc_bclink_wakeup_users(struct net *net); 106void tipc_bclink_wakeup_users(struct net *net);