Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255915
b: refs/heads/master
c: 74d33b3
h: refs/heads/master
i:
  255913: 73c0239
  255911: a1d6014
v: v3
  • Loading branch information
Allan Stephens authored and Paul Gortmaker committed Jun 24, 2011
1 parent 2b8717b commit 3ecbef8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7dd1bf28ccc44ef205c64aab618863faa914daa9
refs/heads/master: 74d33b32deaa9ec864d6db3255b3a17a459f75fe
20 changes: 0 additions & 20 deletions trunk/net/tipc/msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,26 +310,6 @@ static inline void msg_set_seqno(struct tipc_msg *m, u32 n)
msg_set_bits(m, 2, 0, 0xffff, n);
}

/*
* TIPC may utilize the "link ack #" and "link seq #" fields of a short
* message header to hold the destination node for the message, since the
* normal "dest node" field isn't present. This cache is only referenced
* when required, so populating the cache of a longer message header is
* harmless (as long as the header has the two link sequence fields present).
*
* Note: Host byte order is OK here, since the info never goes off-card.
*/

static inline u32 msg_destnode_cache(struct tipc_msg *m)
{
return m->hdr[2];
}

static inline void msg_set_destnode_cache(struct tipc_msg *m, u32 dnode)
{
m->hdr[2] = dnode;
}

/*
* Words 3-10
*/
Expand Down

0 comments on commit 3ecbef8

Please sign in to comment.