diff options
Diffstat (limited to 'net/tipc/msg.h')
-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 | ||