aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/link.h
diff options
context:
space:
mode:
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
254 * Link sequence number manipulation routines (uses modulo 2**16 arithmetic) 254 * Link sequence number manipulation routines (uses modulo 2**16 arithmetic)
255 */ 255 */
256 256
257static inline u32 buf_seqno(struct sk_buff *buf)
258{
259 return msg_seqno(buf_msg(buf));
260}
261
257static inline u32 mod(u32 x) 262static inline u32 mod(u32 x)
258{ 263{
259 return x & 0xffffu; 264 return x & 0xffffu;