diff options
Diffstat (limited to 'net/tipc/bearer.h')
-rw-r--r-- | net/tipc/bearer.h | 16 |
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 | ||
160 | struct tipc_link; | 160 | struct tipc_link; |
161 | 161 | ||
162 | extern 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); | |||
193 | int tipc_media_set_window(const char *name, u32 new_value); | 191 | int tipc_media_set_window(const char *name, u32 new_value); |
194 | void tipc_media_addr_printf(char *buf, int len, struct tipc_media_addr *a); | 192 | void tipc_media_addr_printf(char *buf, int len, struct tipc_media_addr *a); |
195 | struct sk_buff *tipc_media_get_names(void); | 193 | struct sk_buff *tipc_media_get_names(void); |
196 | int tipc_enable_l2_media(struct tipc_bearer *b); | 194 | int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b); |
197 | void tipc_disable_l2_media(struct tipc_bearer *b); | 195 | void tipc_disable_l2_media(struct tipc_bearer *b); |
198 | int tipc_l2_send_msg(struct sk_buff *buf, struct tipc_bearer *b, | 196 | int 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 | ||
201 | struct sk_buff *tipc_bearer_get_names(void); | 199 | struct sk_buff *tipc_bearer_get_names(struct net *net); |
202 | void tipc_bearer_add_dest(u32 bearer_id, u32 dest); | 200 | void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest); |
203 | void tipc_bearer_remove_dest(u32 bearer_id, u32 dest); | 201 | void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest); |
204 | struct tipc_bearer *tipc_bearer_find(const char *name); | 202 | struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name); |
205 | struct tipc_media *tipc_media_find(const char *name); | 203 | struct tipc_media *tipc_media_find(const char *name); |
206 | int tipc_bearer_setup(void); | 204 | int tipc_bearer_setup(void); |
207 | void tipc_bearer_cleanup(void); | 205 | void tipc_bearer_cleanup(void); |
208 | void tipc_bearer_stop(struct net *net); | 206 | void tipc_bearer_stop(struct net *net); |
209 | void tipc_bearer_send(u32 bearer_id, struct sk_buff *buf, | 207 | void 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 */ |