diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-23 14:47:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-23 14:47:02 -0400 |
commit | 5f05647dd81c11a6a165ccc8f0c1370b16f3bcb0 (patch) | |
tree | 7851ef1c93aa1aba7ef327ca4b75fd35e6d10f29 /net/tipc/link.h | |
parent | 02f36038c568111ad4fc433f6fa760ff5e38fab4 (diff) | |
parent | ec37a48d1d16c30b655ac5280209edf52a6775d4 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1699 commits)
bnx2/bnx2x: Unsupported Ethtool operations should return -EINVAL.
vlan: Calling vlan_hwaccel_do_receive() is always valid.
tproxy: use the interface primary IP address as a default value for --on-ip
tproxy: added IPv6 support to the socket match
cxgb3: function namespace cleanup
tproxy: added IPv6 support to the TPROXY target
tproxy: added IPv6 socket lookup function to nf_tproxy_core
be2net: Changes to use only priority codes allowed by f/w
tproxy: allow non-local binds of IPv6 sockets if IP_TRANSPARENT is enabled
tproxy: added tproxy sockopt interface in the IPV6 layer
tproxy: added udp6_lib_lookup function
tproxy: added const specifiers to udp lookup functions
tproxy: split off ipv6 defragmentation to a separate module
l2tp: small cleanup
nf_nat: restrict ICMP translation for embedded header
can: mcp251x: fix generation of error frames
can: mcp251x: fix endless loop in interrupt handler if CANINTF_MERRF is set
can-raw: add msg_flags to distinguish local traffic
9p: client code cleanup
rds: make local functions/variables static
...
Fix up conflicts in net/core/dev.c, drivers/net/pcmcia/smc91c92_cs.c and
drivers/net/wireless/ath/ath9k/debug.c as per David
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 |