aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/link.h
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2011-12-29 20:58:42 -0500
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-12-29 21:53:30 -0500
commita18c4bc3ea3c23f658655b1eee4f62cb71d51efd (patch)
tree573ab87dd9826f1956bb3a17e481842284ad8321 /net/tipc/link.h
parent7f9ab6ac2e79b9658eba7c8e3ad8a4392d308057 (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.h52
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
118struct link { 118struct 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
214struct tipc_port; 214struct tipc_port;
215 215
216struct link *tipc_link_create(struct tipc_node *n_ptr, 216struct 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);
219void tipc_link_delete(struct link *l_ptr); 219void tipc_link_delete(struct tipc_link *l_ptr);
220void tipc_link_changeover(struct link *l_ptr); 220void tipc_link_changeover(struct tipc_link *l_ptr);
221void tipc_link_send_duplicate(struct link *l_ptr, struct link *dest); 221void tipc_link_send_duplicate(struct tipc_link *l_ptr, struct tipc_link *dest);
222void tipc_link_reset_fragments(struct link *l_ptr); 222void tipc_link_reset_fragments(struct tipc_link *l_ptr);
223int tipc_link_is_up(struct link *l_ptr); 223int tipc_link_is_up(struct tipc_link *l_ptr);
224int tipc_link_is_active(struct link *l_ptr); 224int tipc_link_is_active(struct tipc_link *l_ptr);
225u32 tipc_link_push_packet(struct link *l_ptr); 225u32 tipc_link_push_packet(struct tipc_link *l_ptr);
226void tipc_link_stop(struct link *l_ptr); 226void tipc_link_stop(struct tipc_link *l_ptr);
227struct sk_buff *tipc_link_cmd_config(const void *req_tlv_area, int req_tlv_space, u16 cmd); 227struct sk_buff *tipc_link_cmd_config(const void *req_tlv_area, int req_tlv_space, u16 cmd);
228struct sk_buff *tipc_link_cmd_show_stats(const void *req_tlv_area, int req_tlv_space); 228struct sk_buff *tipc_link_cmd_show_stats(const void *req_tlv_area, int req_tlv_space);
229struct sk_buff *tipc_link_cmd_reset_stats(const void *req_tlv_area, int req_tlv_space); 229struct sk_buff *tipc_link_cmd_reset_stats(const void *req_tlv_area, int req_tlv_space);
230void tipc_link_reset(struct link *l_ptr); 230void tipc_link_reset(struct tipc_link *l_ptr);
231int tipc_link_send(struct sk_buff *buf, u32 dest, u32 selector); 231int tipc_link_send(struct sk_buff *buf, u32 dest, u32 selector);
232void tipc_link_send_names(struct list_head *message_list, u32 dest); 232void tipc_link_send_names(struct list_head *message_list, u32 dest);
233int tipc_link_send_buf(struct link *l_ptr, struct sk_buff *buf); 233int tipc_link_send_buf(struct tipc_link *l_ptr, struct sk_buff *buf);
234u32 tipc_link_get_max_pkt(u32 dest, u32 selector); 234u32 tipc_link_get_max_pkt(u32 dest, u32 selector);
235int tipc_link_send_sections_fast(struct tipc_port *sender, 235int 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);
241int tipc_link_recv_fragment(struct sk_buff **pending, 241int 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);
244void tipc_link_send_proto_msg(struct link *l_ptr, u32 msg_typ, int prob, u32 gap, 244void 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,
246void tipc_link_push_queue(struct link *l_ptr); 246 u32 acked_mtu);
247void tipc_link_push_queue(struct tipc_link *l_ptr);
247u32 tipc_link_defer_pkt(struct sk_buff **head, struct sk_buff **tail, 248u32 tipc_link_defer_pkt(struct sk_buff **head, struct sk_buff **tail,
248 struct sk_buff *buf); 249 struct sk_buff *buf);
249void tipc_link_wakeup_ports(struct link *l_ptr, int all); 250void tipc_link_wakeup_ports(struct tipc_link *l_ptr, int all);
250void tipc_link_set_queue_limits(struct link *l_ptr, u32 window); 251void tipc_link_set_queue_limits(struct tipc_link *l_ptr, u32 window);
251void tipc_link_retransmit(struct link *l_ptr, struct sk_buff *start, u32 retransmits); 252void 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
296static inline int link_working_working(struct link *l_ptr) 298static 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
301static inline int link_working_unknown(struct link *l_ptr) 303static 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
306static inline int link_reset_unknown(struct link *l_ptr) 308static 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
311static inline int link_reset_reset(struct link *l_ptr) 313static 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
316static inline int link_blocked(struct link *l_ptr) 318static 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
321static inline int link_congested(struct link *l_ptr) 323static 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}