diff options
Diffstat (limited to 'net/tipc/link.h')
-rw-r--r-- | net/tipc/link.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/net/tipc/link.h b/net/tipc/link.h index 2d3c157f707d..52f3e7c1871f 100644 --- a/net/tipc/link.h +++ b/net/tipc/link.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * net/tipc/link.h: Include file for TIPC link code | 2 | * net/tipc/link.h: Include file for TIPC link code |
3 | * | 3 | * |
4 | * Copyright (c) 1995-2006, Ericsson AB | 4 | * Copyright (c) 1995-2006, Ericsson AB |
5 | * Copyright (c) 2004-2005, Wind River Systems | 5 | * Copyright (c) 2004-2005, Wind River Systems |
6 | * All rights reserved. | 6 | * All rights reserved. |
@@ -45,8 +45,8 @@ | |||
45 | #define PUSH_FAILED 1 | 45 | #define PUSH_FAILED 1 |
46 | #define PUSH_FINISHED 2 | 46 | #define PUSH_FINISHED 2 |
47 | 47 | ||
48 | /* | 48 | /* |
49 | * Link states | 49 | * Link states |
50 | */ | 50 | */ |
51 | 51 | ||
52 | #define WORKING_WORKING 560810u | 52 | #define WORKING_WORKING 560810u |
@@ -54,7 +54,7 @@ | |||
54 | #define RESET_UNKNOWN 560812u | 54 | #define RESET_UNKNOWN 560812u |
55 | #define RESET_RESET 560813u | 55 | #define RESET_RESET 560813u |
56 | 56 | ||
57 | /* | 57 | /* |
58 | * Starting value for maximum packet size negotiation on unicast links | 58 | * Starting value for maximum packet size negotiation on unicast links |
59 | * (unless bearer MTU is less) | 59 | * (unless bearer MTU is less) |
60 | */ | 60 | */ |
@@ -74,7 +74,7 @@ | |||
74 | * @peer_session: link session # being used by peer end of link | 74 | * @peer_session: link session # being used by peer end of link |
75 | * @peer_bearer_id: bearer id used by link's peer endpoint | 75 | * @peer_bearer_id: bearer id used by link's peer endpoint |
76 | * @b_ptr: pointer to bearer used by link | 76 | * @b_ptr: pointer to bearer used by link |
77 | * @tolerance: minimum link continuity loss needed to reset link [in ms] | 77 | * @tolerance: minimum link continuity loss needed to reset link [in ms] |
78 | * @continuity_interval: link continuity testing interval [in ms] | 78 | * @continuity_interval: link continuity testing interval [in ms] |
79 | * @abort_limit: # of unacknowledged continuity probes needed to reset link | 79 | * @abort_limit: # of unacknowledged continuity probes needed to reset link |
80 | * @state: current state of link FSM | 80 | * @state: current state of link FSM |
@@ -110,7 +110,7 @@ | |||
110 | * @stats: collects statistics regarding link activity | 110 | * @stats: collects statistics regarding link activity |
111 | * @print_buf: print buffer used to log link activity | 111 | * @print_buf: print buffer used to log link activity |
112 | */ | 112 | */ |
113 | 113 | ||
114 | struct link { | 114 | struct link { |
115 | u32 addr; | 115 | u32 addr; |
116 | char name[TIPC_MAX_LINK_NAME]; | 116 | char name[TIPC_MAX_LINK_NAME]; |
@@ -143,18 +143,18 @@ struct link { | |||
143 | u32 exp_msg_count; | 143 | u32 exp_msg_count; |
144 | u32 reset_checkpoint; | 144 | u32 reset_checkpoint; |
145 | 145 | ||
146 | /* Max packet negotiation */ | 146 | /* Max packet negotiation */ |
147 | u32 max_pkt; | 147 | u32 max_pkt; |
148 | u32 max_pkt_target; | 148 | u32 max_pkt_target; |
149 | u32 max_pkt_probes; | 149 | u32 max_pkt_probes; |
150 | 150 | ||
151 | /* Sending */ | 151 | /* Sending */ |
152 | u32 out_queue_size; | 152 | u32 out_queue_size; |
153 | struct sk_buff *first_out; | 153 | struct sk_buff *first_out; |
154 | struct sk_buff *last_out; | 154 | struct sk_buff *last_out; |
155 | u32 next_out_no; | 155 | u32 next_out_no; |
156 | u32 last_retransmitted; | 156 | u32 last_retransmitted; |
157 | u32 stale_count; | 157 | u32 stale_count; |
158 | 158 | ||
159 | /* Reception */ | 159 | /* Reception */ |
160 | u32 next_in_no; | 160 | u32 next_in_no; |
@@ -174,7 +174,7 @@ struct link { | |||
174 | u32 long_msg_seq_no; | 174 | u32 long_msg_seq_no; |
175 | struct sk_buff *defragm_buf; | 175 | struct sk_buff *defragm_buf; |
176 | 176 | ||
177 | /* Statistics */ | 177 | /* Statistics */ |
178 | struct { | 178 | struct { |
179 | u32 sent_info; /* used in counting # sent packets */ | 179 | u32 sent_info; /* used in counting # sent packets */ |
180 | u32 recv_info; /* used in counting # recv'd packets */ | 180 | u32 recv_info; /* used in counting # recv'd packets */ |
@@ -239,9 +239,9 @@ void tipc_link_reset(struct link *l_ptr); | |||
239 | int tipc_link_send(struct sk_buff *buf, u32 dest, u32 selector); | 239 | int tipc_link_send(struct sk_buff *buf, u32 dest, u32 selector); |
240 | int tipc_link_send_buf(struct link *l_ptr, struct sk_buff *buf); | 240 | int tipc_link_send_buf(struct link *l_ptr, struct sk_buff *buf); |
241 | u32 tipc_link_get_max_pkt(u32 dest,u32 selector); | 241 | u32 tipc_link_get_max_pkt(u32 dest,u32 selector); |
242 | int tipc_link_send_sections_fast(struct port* sender, | 242 | int tipc_link_send_sections_fast(struct port* sender, |
243 | struct iovec const *msg_sect, | 243 | struct iovec const *msg_sect, |
244 | const u32 num_sect, | 244 | const u32 num_sect, |
245 | u32 destnode); | 245 | u32 destnode); |
246 | int tipc_link_send_long_buf(struct link *l_ptr, struct sk_buff *buf); | 246 | int tipc_link_send_long_buf(struct link *l_ptr, struct sk_buff *buf); |
247 | void tipc_link_tunnel(struct link *l_ptr, struct tipc_msg *tnl_hdr, | 247 | void tipc_link_tunnel(struct link *l_ptr, struct tipc_msg *tnl_hdr, |
@@ -250,7 +250,7 @@ void tipc_link_recv_bundle(struct sk_buff *buf); | |||
250 | int tipc_link_recv_fragment(struct sk_buff **pending, | 250 | int tipc_link_recv_fragment(struct sk_buff **pending, |
251 | struct sk_buff **fb, | 251 | struct sk_buff **fb, |
252 | struct tipc_msg **msg); | 252 | struct tipc_msg **msg); |
253 | void tipc_link_send_proto_msg(struct link *l_ptr, u32 msg_typ, int prob, u32 gap, | 253 | void tipc_link_send_proto_msg(struct link *l_ptr, u32 msg_typ, int prob, u32 gap, |
254 | u32 tolerance, u32 priority, u32 acked_mtu); | 254 | u32 tolerance, u32 priority, u32 acked_mtu); |
255 | void tipc_link_push_queue(struct link *l_ptr); | 255 | void tipc_link_push_queue(struct link *l_ptr); |
256 | u32 tipc_link_defer_pkt(struct sk_buff **head, struct sk_buff **tail, | 256 | u32 tipc_link_defer_pkt(struct sk_buff **head, struct sk_buff **tail, |