diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-05-24 14:44:56 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-06-24 16:18:15 -0400 |
commit | 74d33b32deaa9ec864d6db3255b3a17a459f75fe (patch) | |
tree | 34161c6067e8093ceb816ed5895b0d1560187eb2 /net/tipc | |
parent | 7dd1bf28ccc44ef205c64aab618863faa914daa9 (diff) |
tipc: Eliminate message header routines for caching destination node
Gets rid of a pair of routines that provide support for temporarily
caching the destination node for a message in the associated message
buffer's application handle, since this capability is no longer used.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/msg.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 8452454731fa..11b74dc253f5 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h | |||
@@ -311,26 +311,6 @@ static inline void msg_set_seqno(struct tipc_msg *m, u32 n) | |||
311 | } | 311 | } |
312 | 312 | ||
313 | /* | 313 | /* |
314 | * TIPC may utilize the "link ack #" and "link seq #" fields of a short | ||
315 | * message header to hold the destination node for the message, since the | ||
316 | * normal "dest node" field isn't present. This cache is only referenced | ||
317 | * when required, so populating the cache of a longer message header is | ||
318 | * harmless (as long as the header has the two link sequence fields present). | ||
319 | * | ||
320 | * Note: Host byte order is OK here, since the info never goes off-card. | ||
321 | */ | ||
322 | |||
323 | static inline u32 msg_destnode_cache(struct tipc_msg *m) | ||
324 | { | ||
325 | return m->hdr[2]; | ||
326 | } | ||
327 | |||
328 | static inline void msg_set_destnode_cache(struct tipc_msg *m, u32 dnode) | ||
329 | { | ||
330 | m->hdr[2] = dnode; | ||
331 | } | ||
332 | |||
333 | /* | ||
334 | * Words 3-10 | 314 | * Words 3-10 |
335 | */ | 315 | */ |
336 | 316 | ||