diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-12-09 12:17:25 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-12-09 12:17:25 -0500 |
commit | d834a9dcecae834cd6b2bc5e50e1907738d9cf6a (patch) | |
tree | 0589d753465d3fe359ba451ba6cb7798df03aaa2 /net/tipc/link.h | |
parent | a38c5380ef9f088be9f49b6e4c5d80af8b1b5cd4 (diff) | |
parent | f658bcfb2607bf0808966a69cf74135ce98e5c2d (diff) |
Merge branch 'x86/amd-nb' into x86/apic-cleanups
Reason: apic cleanup series depends on x86/apic, x86/amd-nb x86/platform
Conflicts:
arch/x86/include/asm/io_apic.h
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'net/tipc/link.h')
-rw-r--r-- | net/tipc/link.h | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/net/tipc/link.h b/net/tipc/link.h index 2e5385c47d30..f98bc613de67 100644 --- a/net/tipc/link.h +++ b/net/tipc/link.h | |||
@@ -210,10 +210,6 @@ struct link { | |||
210 | u32 msg_length_counts; | 210 | u32 msg_length_counts; |
211 | u32 msg_lengths_total; | 211 | u32 msg_lengths_total; |
212 | u32 msg_length_profile[7]; | 212 | u32 msg_length_profile[7]; |
213 | #if 0 | ||
214 | u32 sent_tunneled; | ||
215 | u32 recv_tunneled; | ||
216 | #endif | ||
217 | } stats; | 213 | } stats; |
218 | 214 | ||
219 | struct print_buf print_buf; | 215 | struct print_buf print_buf; |
@@ -229,7 +225,6 @@ void tipc_link_send_duplicate(struct link *l_ptr, struct link *dest); | |||
229 | void tipc_link_reset_fragments(struct link *l_ptr); | 225 | void tipc_link_reset_fragments(struct link *l_ptr); |
230 | int tipc_link_is_up(struct link *l_ptr); | 226 | int tipc_link_is_up(struct link *l_ptr); |
231 | int tipc_link_is_active(struct link *l_ptr); | 227 | int tipc_link_is_active(struct link *l_ptr); |
232 | void tipc_link_start(struct link *l_ptr); | ||
233 | u32 tipc_link_push_packet(struct link *l_ptr); | 228 | u32 tipc_link_push_packet(struct link *l_ptr); |
234 | void tipc_link_stop(struct link *l_ptr); | 229 | void tipc_link_stop(struct link *l_ptr); |
235 | struct sk_buff *tipc_link_cmd_config(const void *req_tlv_area, int req_tlv_space, u16 cmd); | 230 | struct sk_buff *tipc_link_cmd_config(const void *req_tlv_area, int req_tlv_space, u16 cmd); |
@@ -243,9 +238,6 @@ int tipc_link_send_sections_fast(struct port* sender, | |||
243 | struct iovec const *msg_sect, | 238 | struct iovec const *msg_sect, |
244 | const u32 num_sect, | 239 | const u32 num_sect, |
245 | u32 destnode); | 240 | u32 destnode); |
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, | ||
248 | struct tipc_msg *msg, u32 selector); | ||
249 | void tipc_link_recv_bundle(struct sk_buff *buf); | 241 | void tipc_link_recv_bundle(struct sk_buff *buf); |
250 | int tipc_link_recv_fragment(struct sk_buff **pending, | 242 | int tipc_link_recv_fragment(struct sk_buff **pending, |
251 | struct sk_buff **fb, | 243 | struct sk_buff **fb, |
@@ -279,12 +271,12 @@ static inline int between(u32 lower, u32 upper, u32 n) | |||
279 | 271 | ||
280 | static inline int less_eq(u32 left, u32 right) | 272 | static inline int less_eq(u32 left, u32 right) |
281 | { | 273 | { |
282 | return (mod(right - left) < 32768u); | 274 | return mod(right - left) < 32768u; |
283 | } | 275 | } |
284 | 276 | ||
285 | static inline int less(u32 left, u32 right) | 277 | static inline int less(u32 left, u32 right) |
286 | { | 278 | { |
287 | return (less_eq(left, right) && (mod(right) != mod(left))); | 279 | return less_eq(left, right) && (mod(right) != mod(left)); |
288 | } | 280 | } |
289 | 281 | ||
290 | static inline u32 lesser(u32 left, u32 right) | 282 | static inline u32 lesser(u32 left, u32 right) |
@@ -299,32 +291,32 @@ static inline u32 lesser(u32 left, u32 right) | |||
299 | 291 | ||
300 | static inline int link_working_working(struct link *l_ptr) | 292 | static inline int link_working_working(struct link *l_ptr) |
301 | { | 293 | { |
302 | return (l_ptr->state == WORKING_WORKING); | 294 | return l_ptr->state == WORKING_WORKING; |
303 | } | 295 | } |
304 | 296 | ||
305 | static inline int link_working_unknown(struct link *l_ptr) | 297 | static inline int link_working_unknown(struct link *l_ptr) |
306 | { | 298 | { |
307 | return (l_ptr->state == WORKING_UNKNOWN); | 299 | return l_ptr->state == WORKING_UNKNOWN; |
308 | } | 300 | } |
309 | 301 | ||
310 | static inline int link_reset_unknown(struct link *l_ptr) | 302 | static inline int link_reset_unknown(struct link *l_ptr) |
311 | { | 303 | { |
312 | return (l_ptr->state == RESET_UNKNOWN); | 304 | return l_ptr->state == RESET_UNKNOWN; |
313 | } | 305 | } |
314 | 306 | ||
315 | static inline int link_reset_reset(struct link *l_ptr) | 307 | static inline int link_reset_reset(struct link *l_ptr) |
316 | { | 308 | { |
317 | return (l_ptr->state == RESET_RESET); | 309 | return l_ptr->state == RESET_RESET; |
318 | } | 310 | } |
319 | 311 | ||
320 | static inline int link_blocked(struct link *l_ptr) | 312 | static inline int link_blocked(struct link *l_ptr) |
321 | { | 313 | { |
322 | return (l_ptr->exp_msg_count || l_ptr->blocked); | 314 | return l_ptr->exp_msg_count || l_ptr->blocked; |
323 | } | 315 | } |
324 | 316 | ||
325 | static inline int link_congested(struct link *l_ptr) | 317 | static inline int link_congested(struct link *l_ptr) |
326 | { | 318 | { |
327 | return (l_ptr->out_queue_size >= l_ptr->queue_limit[0]); | 319 | return l_ptr->out_queue_size >= l_ptr->queue_limit[0]; |
328 | } | 320 | } |
329 | 321 | ||
330 | #endif | 322 | #endif |