diff options
author | Jon Maloy <jon.maloy@ericsson.com> | 2019-06-25 13:37:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-25 16:42:54 -0400 |
commit | a7dc51adcafe00406d0fb6cc5be3b65b8fc52004 (patch) | |
tree | 1215dfd76250d1463a14f5812ac454aeb04f864d /net/tipc | |
parent | 20c67312946dd0e152f6c65d6fa93c1b0eedcd80 (diff) |
tipc: rename function msg_get_wrapped() to msg_inner_hdr()
We rename the inline function msg_get_wrapped() to the more
comprehensible msg_inner_hdr().
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/bcast.c | 4 | ||||
-rw-r--r-- | net/tipc/link.c | 2 | ||||
-rw-r--r-- | net/tipc/msg.h | 4 | ||||
-rw-r--r-- | net/tipc/node.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c index 6c997d4a6218..1336f3cdad38 100644 --- a/net/tipc/bcast.c +++ b/net/tipc/bcast.c | |||
@@ -323,7 +323,7 @@ static int tipc_mcast_send_sync(struct net *net, struct sk_buff *skb, | |||
323 | 323 | ||
324 | hdr = buf_msg(skb); | 324 | hdr = buf_msg(skb); |
325 | if (msg_user(hdr) == MSG_FRAGMENTER) | 325 | if (msg_user(hdr) == MSG_FRAGMENTER) |
326 | hdr = msg_get_wrapped(hdr); | 326 | hdr = msg_inner_hdr(hdr); |
327 | if (msg_type(hdr) != TIPC_MCAST_MSG) | 327 | if (msg_type(hdr) != TIPC_MCAST_MSG) |
328 | return 0; | 328 | return 0; |
329 | 329 | ||
@@ -392,7 +392,7 @@ int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts, | |||
392 | skb = skb_peek(pkts); | 392 | skb = skb_peek(pkts); |
393 | hdr = buf_msg(skb); | 393 | hdr = buf_msg(skb); |
394 | if (msg_user(hdr) == MSG_FRAGMENTER) | 394 | if (msg_user(hdr) == MSG_FRAGMENTER) |
395 | hdr = msg_get_wrapped(hdr); | 395 | hdr = msg_inner_hdr(hdr); |
396 | msg_set_is_rcast(hdr, method->rcast); | 396 | msg_set_is_rcast(hdr, method->rcast); |
397 | 397 | ||
398 | /* Switch method ? */ | 398 | /* Switch method ? */ |
diff --git a/net/tipc/link.c b/net/tipc/link.c index aa79bf8ac0aa..f8bf63befe1f 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -732,7 +732,7 @@ static void link_profile_stats(struct tipc_link *l) | |||
732 | if (msg_user(msg) == MSG_FRAGMENTER) { | 732 | if (msg_user(msg) == MSG_FRAGMENTER) { |
733 | if (msg_type(msg) != FIRST_FRAGMENT) | 733 | if (msg_type(msg) != FIRST_FRAGMENT) |
734 | return; | 734 | return; |
735 | length = msg_size(msg_get_wrapped(msg)); | 735 | length = msg_size(msg_inner_hdr(msg)); |
736 | } | 736 | } |
737 | l->stats.msg_lengths_total += length; | 737 | l->stats.msg_lengths_total += length; |
738 | l->stats.msg_length_counts++; | 738 | l->stats.msg_length_counts++; |
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 8de02ad6e352..da509f0eb9ca 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h | |||
@@ -308,7 +308,7 @@ static inline unchar *msg_data(struct tipc_msg *m) | |||
308 | return ((unchar *)m) + msg_hdr_sz(m); | 308 | return ((unchar *)m) + msg_hdr_sz(m); |
309 | } | 309 | } |
310 | 310 | ||
311 | static inline struct tipc_msg *msg_get_wrapped(struct tipc_msg *m) | 311 | static inline struct tipc_msg *msg_inner_hdr(struct tipc_msg *m) |
312 | { | 312 | { |
313 | return (struct tipc_msg *)msg_data(m); | 313 | return (struct tipc_msg *)msg_data(m); |
314 | } | 314 | } |
@@ -486,7 +486,7 @@ static inline void msg_set_prevnode(struct tipc_msg *m, u32 a) | |||
486 | static inline u32 msg_origport(struct tipc_msg *m) | 486 | static inline u32 msg_origport(struct tipc_msg *m) |
487 | { | 487 | { |
488 | if (msg_user(m) == MSG_FRAGMENTER) | 488 | if (msg_user(m) == MSG_FRAGMENTER) |
489 | m = msg_get_wrapped(m); | 489 | m = msg_inner_hdr(m); |
490 | return msg_word(m, 4); | 490 | return msg_word(m, 4); |
491 | } | 491 | } |
492 | 492 | ||
diff --git a/net/tipc/node.c b/net/tipc/node.c index 550581d47d51..324a1f91b394 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c | |||
@@ -1649,7 +1649,7 @@ static bool tipc_node_check_state(struct tipc_node *n, struct sk_buff *skb, | |||
1649 | int usr = msg_user(hdr); | 1649 | int usr = msg_user(hdr); |
1650 | int mtyp = msg_type(hdr); | 1650 | int mtyp = msg_type(hdr); |
1651 | u16 oseqno = msg_seqno(hdr); | 1651 | u16 oseqno = msg_seqno(hdr); |
1652 | u16 iseqno = msg_seqno(msg_get_wrapped(hdr)); | 1652 | u16 iseqno = msg_seqno(msg_inner_hdr(hdr)); |
1653 | u16 exp_pkts = msg_msgcnt(hdr); | 1653 | u16 exp_pkts = msg_msgcnt(hdr); |
1654 | u16 rcv_nxt, syncpt, dlv_nxt, inputq_len; | 1654 | u16 rcv_nxt, syncpt, dlv_nxt, inputq_len; |
1655 | int state = n->state; | 1655 | int state = n->state; |