aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r--net/tipc/msg.h42
1 files changed, 2 insertions, 40 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h
index 9d643a1b7d22..de02339fc175 100644
--- a/net/tipc/msg.h
+++ b/net/tipc/msg.h
@@ -421,13 +421,6 @@ static inline int msg_is_dest(struct tipc_msg *m, u32 d)
421 return msg_short(m) || (msg_destnode(m) == d); 421 return msg_short(m) || (msg_destnode(m) == d);
422} 422}
423 423
424static inline u32 msg_routed(struct tipc_msg *m)
425{
426 if (likely(msg_short(m)))
427 return 0;
428 return (msg_destnode(m) ^ msg_orignode(m)) >> 11;
429}
430
431static inline u32 msg_nametype(struct tipc_msg *m) 424static inline u32 msg_nametype(struct tipc_msg *m)
432{ 425{
433 return msg_word(m, 8); 426 return msg_word(m, 8);
@@ -438,16 +431,6 @@ static inline void msg_set_nametype(struct tipc_msg *m, u32 n)
438 msg_set_word(m, 8, n); 431 msg_set_word(m, 8, n);
439} 432}
440 433
441static inline void msg_set_timestamp(struct tipc_msg *m, u32 n)
442{
443 msg_set_word(m, 8, n);
444}
445
446static inline u32 msg_timestamp(struct tipc_msg *m)
447{
448 return msg_word(m, 8);
449}
450
451static inline u32 msg_nameinst(struct tipc_msg *m) 434static inline u32 msg_nameinst(struct tipc_msg *m)
452{ 435{
453 return msg_word(m, 9); 436 return msg_word(m, 9);
@@ -535,7 +518,6 @@ static inline struct tipc_msg *msg_get_wrapped(struct tipc_msg *m)
535#define NAME_DISTRIBUTOR 11 518#define NAME_DISTRIBUTOR 11
536#define MSG_FRAGMENTER 12 519#define MSG_FRAGMENTER 12
537#define LINK_CONFIG 13 520#define LINK_CONFIG 13
538#define DSC_H_SIZE 40
539 521
540/* 522/*
541 * Connection management protocol messages 523 * Connection management protocol messages
@@ -729,14 +711,9 @@ static inline u32 msg_redundant_link(struct tipc_msg *m)
729 return msg_bits(m, 5, 12, 0x1); 711 return msg_bits(m, 5, 12, 0x1);
730} 712}
731 713
732static inline void msg_set_redundant_link(struct tipc_msg *m) 714static inline void msg_set_redundant_link(struct tipc_msg *m, u32 r)
733{ 715{
734 msg_set_bits(m, 5, 12, 0x1, 1); 716 msg_set_bits(m, 5, 12, 0x1, r);
735}
736
737static inline void msg_clear_redundant_link(struct tipc_msg *m)
738{
739 msg_set_bits(m, 5, 12, 0x1, 0);
740} 717}
741 718
742 719
@@ -785,21 +762,6 @@ static inline void msg_set_link_tolerance(struct tipc_msg *m, u32 n)
785} 762}
786 763
787/* 764/*
788 * Routing table message data
789 */
790
791
792static inline u32 msg_remote_node(struct tipc_msg *m)
793{
794 return msg_word(m, msg_hdr_sz(m)/4);
795}
796
797static inline void msg_set_remote_node(struct tipc_msg *m, u32 a)
798{
799 msg_set_word(m, msg_hdr_sz(m)/4, a);
800}
801
802/*
803 * Segmentation message types 765 * Segmentation message types
804 */ 766 */
805 767