aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/msg.h
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2008-03-06 18:06:55 -0500
committerDavid S. Miller <davem@davemloft.net>2008-03-06 18:06:55 -0500
commit06d82c9191261942ce7873ce4a8735fd2a15e662 (patch)
treefcb464c6052f5eba9aa0bd1609533b7a246387df /net/tipc/msg.h
parent0e0609bbd2ab39a5964a70b409a5567ebbaf3700 (diff)
[TIPC]: Minor cleanup of message header code
This patch eliminates some unused or duplicate message header symbols, and fixes up the comments and/or location of a few other symbols. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r--net/tipc/msg.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h
index 12f8945e8a54..5cf76a4f28e4 100644
--- a/net/tipc/msg.h
+++ b/net/tipc/msg.h
@@ -40,18 +40,16 @@
40#include "core.h" 40#include "core.h"
41 41
42#define TIPC_VERSION 2 42#define TIPC_VERSION 2
43#define DATA_LOW TIPC_LOW_IMPORTANCE 43
44#define DATA_MEDIUM TIPC_MEDIUM_IMPORTANCE 44#define SHORT_H_SIZE 24 /* Connected, in-cluster messages */
45#define DATA_HIGH TIPC_HIGH_IMPORTANCE
46#define DATA_CRITICAL TIPC_CRITICAL_IMPORTANCE
47#define SHORT_H_SIZE 24 /* Connected,in cluster */
48#define DIR_MSG_H_SIZE 32 /* Directly addressed messages */ 45#define DIR_MSG_H_SIZE 32 /* Directly addressed messages */
49#define CONN_MSG_H_SIZE 36 /* Routed connected msgs*/ 46#define LONG_H_SIZE 40 /* Named messages */
50#define LONG_H_SIZE 40 /* Named Messages */
51#define MCAST_H_SIZE 44 /* Multicast messages */ 47#define MCAST_H_SIZE 44 /* Multicast messages */
52#define MAX_H_SIZE 60 /* Inclusive full options */ 48#define INT_H_SIZE 40 /* Internal messages */
49#define MIN_H_SIZE 24 /* Smallest legal TIPC header size */
50#define MAX_H_SIZE 60 /* Largest possible TIPC header size */
51
53#define MAX_MSG_SIZE (MAX_H_SIZE + TIPC_MAX_USER_MSG_SIZE) 52#define MAX_MSG_SIZE (MAX_H_SIZE + TIPC_MAX_USER_MSG_SIZE)
54#define LINK_CONFIG 13
55 53
56 54
57/* 55/*
@@ -97,7 +95,7 @@ static inline u32 msg_user(struct tipc_msg *m)
97 95
98static inline u32 msg_isdata(struct tipc_msg *m) 96static inline u32 msg_isdata(struct tipc_msg *m)
99{ 97{
100 return (msg_user(m) <= DATA_CRITICAL); 98 return (msg_user(m) <= TIPC_CRITICAL_IMPORTANCE);
101} 99}
102 100
103static inline void msg_set_user(struct tipc_msg *m, u32 n) 101static inline void msg_set_user(struct tipc_msg *m, u32 n)
@@ -365,7 +363,6 @@ static inline struct tipc_msg *msg_get_wrapped(struct tipc_msg *m)
365#define NAME_DISTRIBUTOR 11 363#define NAME_DISTRIBUTOR 11
366#define MSG_FRAGMENTER 12 364#define MSG_FRAGMENTER 12
367#define LINK_CONFIG 13 365#define LINK_CONFIG 13
368#define INT_H_SIZE 40
369#define DSC_H_SIZE 40 366#define DSC_H_SIZE 40
370 367
371/* 368/*