diff options
Diffstat (limited to 'net/tipc/msg.h')
| -rw-r--r-- | net/tipc/msg.h | 64 | 
1 files changed, 3 insertions, 61 deletions
| diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 92c4c4fd7b3..de02339fc17 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h @@ -2,7 +2,7 @@   * net/tipc/msg.h: Include file for TIPC message header routines   *   * Copyright (c) 2000-2007, Ericsson AB - * Copyright (c) 2005-2008, Wind River Systems + * Copyright (c) 2005-2008, 2010-2011, Wind River Systems   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -421,13 +421,6 @@ static inline int msg_is_dest(struct tipc_msg *m, u32 d)  	return msg_short(m) || (msg_destnode(m) == d);  } -static inline u32 msg_routed(struct tipc_msg *m) -{ -	if (likely(msg_short(m))) -		return 0; -	return (msg_destnode(m) ^ msg_orignode(m)) >> 11; -} -  static inline u32 msg_nametype(struct tipc_msg *m)  {  	return msg_word(m, 8); @@ -438,26 +431,6 @@ static inline void msg_set_nametype(struct tipc_msg *m, u32 n)  	msg_set_word(m, 8, n);  } -static inline u32 msg_transp_seqno(struct tipc_msg *m) -{ -	return msg_word(m, 8); -} - -static inline void msg_set_timestamp(struct tipc_msg *m, u32 n) -{ -	msg_set_word(m, 8, n); -} - -static inline u32 msg_timestamp(struct tipc_msg *m) -{ -	return msg_word(m, 8); -} - -static inline void msg_set_transp_seqno(struct tipc_msg *m, u32 n) -{ -	msg_set_word(m, 8, n); -} -  static inline u32 msg_nameinst(struct tipc_msg *m)  {  	return msg_word(m, 9); @@ -545,7 +518,6 @@ static inline struct tipc_msg *msg_get_wrapped(struct tipc_msg *m)  #define  NAME_DISTRIBUTOR     11  #define  MSG_FRAGMENTER       12  #define  LINK_CONFIG          13 -#define  DSC_H_SIZE           40  /*   *  Connection management protocol messages @@ -577,16 +549,6 @@ static inline void msg_set_seq_gap(struct tipc_msg *m, u32 n)  	msg_set_bits(m, 1, 16, 0x1fff, n);  } -static inline u32 msg_req_links(struct tipc_msg *m) -{ -	return msg_bits(m, 1, 16, 0xfff); -} - -static inline void msg_set_req_links(struct tipc_msg *m, u32 n) -{ -	msg_set_bits(m, 1, 16, 0xfff, n); -} -  /*   * Word 2 @@ -749,14 +711,9 @@ static inline u32 msg_redundant_link(struct tipc_msg *m)  	return msg_bits(m, 5, 12, 0x1);  } -static inline void msg_set_redundant_link(struct tipc_msg *m) +static inline void msg_set_redundant_link(struct tipc_msg *m, u32 r)  { -	msg_set_bits(m, 5, 12, 0x1, 1); -} - -static inline void msg_clear_redundant_link(struct tipc_msg *m) -{ -	msg_set_bits(m, 5, 12, 0x1, 0); +	msg_set_bits(m, 5, 12, 0x1, r);  } @@ -805,21 +762,6 @@ static inline void msg_set_link_tolerance(struct tipc_msg *m, u32 n)  }  /* - * Routing table message data - */ - - -static inline u32 msg_remote_node(struct tipc_msg *m) -{ -	return msg_word(m, msg_hdr_sz(m)/4); -} - -static inline void msg_set_remote_node(struct tipc_msg *m, u32 a) -{ -	msg_set_word(m, msg_hdr_sz(m)/4, a); -} - -/*   * Segmentation message types   */ | 
