summaryrefslogtreecommitdiffstats
path: root/net/tipc/link.h
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2011-10-24 22:03:12 +0200
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-12-27 17:33:54 +0100
commitf905730c7ed97dc2dfcbf6af894acd6ce70a62e7 (patch)
tree15e9f4ebe56165668dfb61dc77bef84daefc807c /net/tipc/link.h
parenttipc: Ignore broadcast acknowledgements that are out-of-range (diff)
downloadlinux-f905730c7ed97dc2dfcbf6af894acd6ce70a62e7.tar.xz
linux-f905730c7ed97dc2dfcbf6af894acd6ce70a62e7.zip
tipc: Allow use of buf_seqno() helper routine by unicast links
Migrates the buf_seqno() helper routine from broadcast link level to unicast link level so that it can be used both types of TIPC links. This is a cosmetic change only, and does not affect the operation of TIPC. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/link.h')
-rw-r--r--net/tipc/link.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/tipc/link.h b/net/tipc/link.h
index 78792399d667..d35b0f3045ea 100644
--- a/net/tipc/link.h
+++ b/net/tipc/link.h
@@ -254,6 +254,11 @@ void tipc_link_retransmit(struct link *l_ptr, struct sk_buff *start, u32 retrans
* Link sequence number manipulation routines (uses modulo 2**16 arithmetic)
*/
+static inline u32 buf_seqno(struct sk_buff *buf)
+{
+ return msg_seqno(buf_msg(buf));
+}
+
static inline u32 mod(u32 x)
{
return x & 0xffffu;