diff options
Diffstat (limited to 'net/tipc/link.h')
-rw-r--r-- | net/tipc/link.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/net/tipc/link.h b/net/tipc/link.h index 8a6c1026644d..3b6aa65b608c 100644 --- a/net/tipc/link.h +++ b/net/tipc/link.h | |||
@@ -112,7 +112,6 @@ struct tipc_stats { | |||
112 | * @continuity_interval: link continuity testing interval [in ms] | 112 | * @continuity_interval: link continuity testing interval [in ms] |
113 | * @abort_limit: # of unacknowledged continuity probes needed to reset link | 113 | * @abort_limit: # of unacknowledged continuity probes needed to reset link |
114 | * @state: current state of link FSM | 114 | * @state: current state of link FSM |
115 | * @blocked: indicates if link has been administratively blocked | ||
116 | * @fsm_msg_cnt: # of protocol messages link FSM has sent in current state | 115 | * @fsm_msg_cnt: # of protocol messages link FSM has sent in current state |
117 | * @proto_msg: template for control messages generated by link | 116 | * @proto_msg: template for control messages generated by link |
118 | * @pmsg: convenience pointer to "proto_msg" field | 117 | * @pmsg: convenience pointer to "proto_msg" field |
@@ -162,7 +161,6 @@ struct tipc_link { | |||
162 | u32 continuity_interval; | 161 | u32 continuity_interval; |
163 | u32 abort_limit; | 162 | u32 abort_limit; |
164 | int state; | 163 | int state; |
165 | int blocked; | ||
166 | u32 fsm_msg_cnt; | 164 | u32 fsm_msg_cnt; |
167 | struct { | 165 | struct { |
168 | unchar hdr[INT_H_SIZE]; | 166 | unchar hdr[INT_H_SIZE]; |
@@ -218,16 +216,20 @@ struct tipc_link *tipc_link_create(struct tipc_node *n_ptr, | |||
218 | struct tipc_bearer *b_ptr, | 216 | struct tipc_bearer *b_ptr, |
219 | const struct tipc_media_addr *media_addr); | 217 | const struct tipc_media_addr *media_addr); |
220 | void tipc_link_delete(struct tipc_link *l_ptr); | 218 | void tipc_link_delete(struct tipc_link *l_ptr); |
221 | void tipc_link_changeover(struct tipc_link *l_ptr); | 219 | void tipc_link_failover_send_queue(struct tipc_link *l_ptr); |
222 | void tipc_link_send_duplicate(struct tipc_link *l_ptr, struct tipc_link *dest); | 220 | void tipc_link_dup_send_queue(struct tipc_link *l_ptr, |
221 | struct tipc_link *dest); | ||
223 | void tipc_link_reset_fragments(struct tipc_link *l_ptr); | 222 | void tipc_link_reset_fragments(struct tipc_link *l_ptr); |
224 | int tipc_link_is_up(struct tipc_link *l_ptr); | 223 | int tipc_link_is_up(struct tipc_link *l_ptr); |
225 | int tipc_link_is_active(struct tipc_link *l_ptr); | 224 | int tipc_link_is_active(struct tipc_link *l_ptr); |
226 | u32 tipc_link_push_packet(struct tipc_link *l_ptr); | 225 | void tipc_link_purge_queues(struct tipc_link *l_ptr); |
227 | void tipc_link_stop(struct tipc_link *l_ptr); | 226 | struct sk_buff *tipc_link_cmd_config(const void *req_tlv_area, |
228 | struct sk_buff *tipc_link_cmd_config(const void *req_tlv_area, int req_tlv_space, u16 cmd); | 227 | int req_tlv_space, |
229 | struct sk_buff *tipc_link_cmd_show_stats(const void *req_tlv_area, int req_tlv_space); | 228 | u16 cmd); |
230 | struct sk_buff *tipc_link_cmd_reset_stats(const void *req_tlv_area, int req_tlv_space); | 229 | struct sk_buff *tipc_link_cmd_show_stats(const void *req_tlv_area, |
230 | int req_tlv_space); | ||
231 | struct sk_buff *tipc_link_cmd_reset_stats(const void *req_tlv_area, | ||
232 | int req_tlv_space); | ||
231 | void tipc_link_reset(struct tipc_link *l_ptr); | 233 | void tipc_link_reset(struct tipc_link *l_ptr); |
232 | int tipc_link_send(struct sk_buff *buf, u32 dest, u32 selector); | 234 | int tipc_link_send(struct sk_buff *buf, u32 dest, u32 selector); |
233 | void tipc_link_send_names(struct list_head *message_list, u32 dest); | 235 | void tipc_link_send_names(struct list_head *message_list, u32 dest); |
@@ -312,11 +314,6 @@ static inline int link_reset_reset(struct tipc_link *l_ptr) | |||
312 | return l_ptr->state == RESET_RESET; | 314 | return l_ptr->state == RESET_RESET; |
313 | } | 315 | } |
314 | 316 | ||
315 | static inline int link_blocked(struct tipc_link *l_ptr) | ||
316 | { | ||
317 | return l_ptr->exp_msg_count || l_ptr->blocked; | ||
318 | } | ||
319 | |||
320 | static inline int link_congested(struct tipc_link *l_ptr) | 317 | static inline int link_congested(struct tipc_link *l_ptr) |
321 | { | 318 | { |
322 | return l_ptr->out_queue_size >= l_ptr->queue_limit[0]; | 319 | return l_ptr->out_queue_size >= l_ptr->queue_limit[0]; |