diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-29 20:58:42 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-29 21:53:30 -0500 |
commit | a18c4bc3ea3c23f658655b1eee4f62cb71d51efd (patch) | |
tree | 573ab87dd9826f1956bb3a17e481842284ad8321 /net/tipc/link.h | |
parent | 7f9ab6ac2e79b9658eba7c8e3ad8a4392d308057 (diff) |
tipc: rename struct link* to struct tipc_link*
This converts the following:
struct link -> struct tipc_link
struct link_req -> struct tipc_link_req
struct link_name -> struct tipc_link_name
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/link.h')
-rw-r--r-- | net/tipc/link.h | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/net/tipc/link.h b/net/tipc/link.h index d35b0f3045ea..73c18c140e1d 100644 --- a/net/tipc/link.h +++ b/net/tipc/link.h | |||
@@ -67,7 +67,7 @@ | |||
67 | #define MAX_PKT_DEFAULT 1500 | 67 | #define MAX_PKT_DEFAULT 1500 |
68 | 68 | ||
69 | /** | 69 | /** |
70 | * struct link - TIPC link data structure | 70 | * struct tipc_link - TIPC link data structure |
71 | * @addr: network address of link's peer node | 71 | * @addr: network address of link's peer node |
72 | * @name: link name character string | 72 | * @name: link name character string |
73 | * @media_addr: media address to use when sending messages over link | 73 | * @media_addr: media address to use when sending messages over link |
@@ -115,7 +115,7 @@ | |||
115 | * @stats: collects statistics regarding link activity | 115 | * @stats: collects statistics regarding link activity |
116 | */ | 116 | */ |
117 | 117 | ||
118 | struct link { | 118 | struct tipc_link { |
119 | u32 addr; | 119 | u32 addr; |
120 | char name[TIPC_MAX_LINK_NAME]; | 120 | char name[TIPC_MAX_LINK_NAME]; |
121 | struct tipc_media_addr media_addr; | 121 | struct tipc_media_addr media_addr; |
@@ -213,24 +213,24 @@ struct link { | |||
213 | 213 | ||
214 | struct tipc_port; | 214 | struct tipc_port; |
215 | 215 | ||
216 | struct link *tipc_link_create(struct tipc_node *n_ptr, | 216 | struct tipc_link *tipc_link_create(struct tipc_node *n_ptr, |
217 | struct tipc_bearer *b_ptr, | 217 | struct tipc_bearer *b_ptr, |
218 | const struct tipc_media_addr *media_addr); | 218 | const struct tipc_media_addr *media_addr); |
219 | void tipc_link_delete(struct link *l_ptr); | 219 | void tipc_link_delete(struct tipc_link *l_ptr); |
220 | void tipc_link_changeover(struct link *l_ptr); | 220 | void tipc_link_changeover(struct tipc_link *l_ptr); |
221 | void tipc_link_send_duplicate(struct link *l_ptr, struct link *dest); | 221 | void tipc_link_send_duplicate(struct tipc_link *l_ptr, struct tipc_link *dest); |
222 | void tipc_link_reset_fragments(struct link *l_ptr); | 222 | void tipc_link_reset_fragments(struct tipc_link *l_ptr); |
223 | int tipc_link_is_up(struct link *l_ptr); | 223 | int tipc_link_is_up(struct tipc_link *l_ptr); |
224 | int tipc_link_is_active(struct link *l_ptr); | 224 | int tipc_link_is_active(struct tipc_link *l_ptr); |
225 | u32 tipc_link_push_packet(struct link *l_ptr); | 225 | u32 tipc_link_push_packet(struct tipc_link *l_ptr); |
226 | void tipc_link_stop(struct link *l_ptr); | 226 | void tipc_link_stop(struct tipc_link *l_ptr); |
227 | struct sk_buff *tipc_link_cmd_config(const void *req_tlv_area, int req_tlv_space, u16 cmd); | 227 | struct sk_buff *tipc_link_cmd_config(const void *req_tlv_area, int req_tlv_space, u16 cmd); |
228 | struct sk_buff *tipc_link_cmd_show_stats(const void *req_tlv_area, int req_tlv_space); | 228 | struct sk_buff *tipc_link_cmd_show_stats(const void *req_tlv_area, int req_tlv_space); |
229 | struct sk_buff *tipc_link_cmd_reset_stats(const void *req_tlv_area, int req_tlv_space); | 229 | struct sk_buff *tipc_link_cmd_reset_stats(const void *req_tlv_area, int req_tlv_space); |
230 | void tipc_link_reset(struct link *l_ptr); | 230 | void tipc_link_reset(struct tipc_link *l_ptr); |
231 | int tipc_link_send(struct sk_buff *buf, u32 dest, u32 selector); | 231 | int tipc_link_send(struct sk_buff *buf, u32 dest, u32 selector); |
232 | void tipc_link_send_names(struct list_head *message_list, u32 dest); | 232 | void tipc_link_send_names(struct list_head *message_list, u32 dest); |
233 | int tipc_link_send_buf(struct link *l_ptr, struct sk_buff *buf); | 233 | int tipc_link_send_buf(struct tipc_link *l_ptr, struct sk_buff *buf); |
234 | u32 tipc_link_get_max_pkt(u32 dest, u32 selector); | 234 | u32 tipc_link_get_max_pkt(u32 dest, u32 selector); |
235 | int tipc_link_send_sections_fast(struct tipc_port *sender, | 235 | int tipc_link_send_sections_fast(struct tipc_port *sender, |
236 | struct iovec const *msg_sect, | 236 | struct iovec const *msg_sect, |
@@ -241,14 +241,16 @@ void tipc_link_recv_bundle(struct sk_buff *buf); | |||
241 | int tipc_link_recv_fragment(struct sk_buff **pending, | 241 | int tipc_link_recv_fragment(struct sk_buff **pending, |
242 | struct sk_buff **fb, | 242 | struct sk_buff **fb, |
243 | struct tipc_msg **msg); | 243 | struct tipc_msg **msg); |
244 | void tipc_link_send_proto_msg(struct link *l_ptr, u32 msg_typ, int prob, u32 gap, | 244 | void tipc_link_send_proto_msg(struct tipc_link *l_ptr, u32 msg_typ, int prob, |
245 | u32 tolerance, u32 priority, u32 acked_mtu); | 245 | u32 gap, u32 tolerance, u32 priority, |
246 | void tipc_link_push_queue(struct link *l_ptr); | 246 | u32 acked_mtu); |
247 | void tipc_link_push_queue(struct tipc_link *l_ptr); | ||
247 | u32 tipc_link_defer_pkt(struct sk_buff **head, struct sk_buff **tail, | 248 | u32 tipc_link_defer_pkt(struct sk_buff **head, struct sk_buff **tail, |
248 | struct sk_buff *buf); | 249 | struct sk_buff *buf); |
249 | void tipc_link_wakeup_ports(struct link *l_ptr, int all); | 250 | void tipc_link_wakeup_ports(struct tipc_link *l_ptr, int all); |
250 | void tipc_link_set_queue_limits(struct link *l_ptr, u32 window); | 251 | void tipc_link_set_queue_limits(struct tipc_link *l_ptr, u32 window); |
251 | void tipc_link_retransmit(struct link *l_ptr, struct sk_buff *start, u32 retransmits); | 252 | void tipc_link_retransmit(struct tipc_link *l_ptr, |
253 | struct sk_buff *start, u32 retransmits); | ||
252 | 254 | ||
253 | /* | 255 | /* |
254 | * Link sequence number manipulation routines (uses modulo 2**16 arithmetic) | 256 | * Link sequence number manipulation routines (uses modulo 2**16 arithmetic) |
@@ -293,32 +295,32 @@ static inline u32 lesser(u32 left, u32 right) | |||
293 | * Link status checking routines | 295 | * Link status checking routines |
294 | */ | 296 | */ |
295 | 297 | ||
296 | static inline int link_working_working(struct link *l_ptr) | 298 | static inline int link_working_working(struct tipc_link *l_ptr) |
297 | { | 299 | { |
298 | return l_ptr->state == WORKING_WORKING; | 300 | return l_ptr->state == WORKING_WORKING; |
299 | } | 301 | } |
300 | 302 | ||
301 | static inline int link_working_unknown(struct link *l_ptr) | 303 | static inline int link_working_unknown(struct tipc_link *l_ptr) |
302 | { | 304 | { |
303 | return l_ptr->state == WORKING_UNKNOWN; | 305 | return l_ptr->state == WORKING_UNKNOWN; |
304 | } | 306 | } |
305 | 307 | ||
306 | static inline int link_reset_unknown(struct link *l_ptr) | 308 | static inline int link_reset_unknown(struct tipc_link *l_ptr) |
307 | { | 309 | { |
308 | return l_ptr->state == RESET_UNKNOWN; | 310 | return l_ptr->state == RESET_UNKNOWN; |
309 | } | 311 | } |
310 | 312 | ||
311 | static inline int link_reset_reset(struct link *l_ptr) | 313 | static inline int link_reset_reset(struct tipc_link *l_ptr) |
312 | { | 314 | { |
313 | return l_ptr->state == RESET_RESET; | 315 | return l_ptr->state == RESET_RESET; |
314 | } | 316 | } |
315 | 317 | ||
316 | static inline int link_blocked(struct link *l_ptr) | 318 | static inline int link_blocked(struct tipc_link *l_ptr) |
317 | { | 319 | { |
318 | return l_ptr->exp_msg_count || l_ptr->blocked; | 320 | return l_ptr->exp_msg_count || l_ptr->blocked; |
319 | } | 321 | } |
320 | 322 | ||
321 | static inline int link_congested(struct link *l_ptr) | 323 | static inline int link_congested(struct tipc_link *l_ptr) |
322 | { | 324 | { |
323 | return l_ptr->out_queue_size >= l_ptr->queue_limit[0]; | 325 | return l_ptr->out_queue_size >= l_ptr->queue_limit[0]; |
324 | } | 326 | } |