aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/bearer.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/bearer.h')
-rw-r--r--net/tipc/bearer.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/net/tipc/bearer.h b/net/tipc/bearer.h
index 91a8eeea309c..01722d6b2058 100644
--- a/net/tipc/bearer.h
+++ b/net/tipc/bearer.h
@@ -92,7 +92,7 @@ struct tipc_media {
92 int (*send_msg)(struct sk_buff *buf, 92 int (*send_msg)(struct sk_buff *buf,
93 struct tipc_bearer *b_ptr, 93 struct tipc_bearer *b_ptr,
94 struct tipc_media_addr *dest); 94 struct tipc_media_addr *dest);
95 int (*enable_media)(struct tipc_bearer *b_ptr); 95 int (*enable_media)(struct net *net, struct tipc_bearer *b_ptr);
96 void (*disable_media)(struct tipc_bearer *b_ptr); 96 void (*disable_media)(struct tipc_bearer *b_ptr);
97 int (*addr2str)(struct tipc_media_addr *addr, 97 int (*addr2str)(struct tipc_media_addr *addr,
98 char *strbuf, 98 char *strbuf,
@@ -159,8 +159,6 @@ struct tipc_bearer_names {
159 159
160struct tipc_link; 160struct tipc_link;
161 161
162extern struct tipc_bearer __rcu *bearer_list[];
163
164/* 162/*
165 * TIPC routines available to supported media types 163 * TIPC routines available to supported media types
166 */ 164 */
@@ -193,20 +191,20 @@ int tipc_media_set_priority(const char *name, u32 new_value);
193int tipc_media_set_window(const char *name, u32 new_value); 191int tipc_media_set_window(const char *name, u32 new_value);
194void tipc_media_addr_printf(char *buf, int len, struct tipc_media_addr *a); 192void tipc_media_addr_printf(char *buf, int len, struct tipc_media_addr *a);
195struct sk_buff *tipc_media_get_names(void); 193struct sk_buff *tipc_media_get_names(void);
196int tipc_enable_l2_media(struct tipc_bearer *b); 194int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b);
197void tipc_disable_l2_media(struct tipc_bearer *b); 195void tipc_disable_l2_media(struct tipc_bearer *b);
198int tipc_l2_send_msg(struct sk_buff *buf, struct tipc_bearer *b, 196int tipc_l2_send_msg(struct sk_buff *buf, struct tipc_bearer *b,
199 struct tipc_media_addr *dest); 197 struct tipc_media_addr *dest);
200 198
201struct sk_buff *tipc_bearer_get_names(void); 199struct sk_buff *tipc_bearer_get_names(struct net *net);
202void tipc_bearer_add_dest(u32 bearer_id, u32 dest); 200void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest);
203void tipc_bearer_remove_dest(u32 bearer_id, u32 dest); 201void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest);
204struct tipc_bearer *tipc_bearer_find(const char *name); 202struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name);
205struct tipc_media *tipc_media_find(const char *name); 203struct tipc_media *tipc_media_find(const char *name);
206int tipc_bearer_setup(void); 204int tipc_bearer_setup(void);
207void tipc_bearer_cleanup(void); 205void tipc_bearer_cleanup(void);
208void tipc_bearer_stop(struct net *net); 206void tipc_bearer_stop(struct net *net);
209void tipc_bearer_send(u32 bearer_id, struct sk_buff *buf, 207void tipc_bearer_send(struct net *net, u32 bearer_id, struct sk_buff *buf,
210 struct tipc_media_addr *dest); 208 struct tipc_media_addr *dest);
211 209
212#endif /* _TIPC_BEARER_H */ 210#endif /* _TIPC_BEARER_H */