Skip to content

Commit 390bce4

Browse files
ajstephensPaul Gortmaker
authored andcommitted
tipc: Eliminate obsolete routine for handling routed messages
Eliminates a routine that is used in handling messages arriving from another cluster or zone. Such messages can no longer be received by TIPC now that multi-cluster and multi-zone network support has been eliminated. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent 7945c1f commit 390bce4

3 files changed

Lines changed: 0 additions & 16 deletions

File tree

‎net/tipc/link.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2423,9 +2423,6 @@ static int link_send_long_buf(struct link *l_ptr, struct sk_buff *buf)
24232423
else
24242424
destaddr = msg_destnode(inmsg);
24252425

2426-
if (msg_routed(inmsg))
2427-
msg_set_prevnode(inmsg, tipc_own_addr);
2428-
24292426
/* Prepare reusable fragment header: */
24302427

24312428
tipc_msg_init(&fragm_hdr, MSG_FRAGMENTER, FIRST_FRAGMENT,

‎net/tipc/msg.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ void tipc_msg_dbg(struct print_buf *buf, struct tipc_msg *msg, const char *str)
192192
default:
193193
tipc_printf(buf, "UNKNOWN TYPE %u", msg_type(msg));
194194
}
195-
if (msg_routed(msg) && !msg_non_seq(msg))
196-
tipc_printf(buf, "ROUT:");
197195
if (msg_reroute_cnt(msg))
198196
tipc_printf(buf, "REROUTED(%u):",
199197
msg_reroute_cnt(msg));
@@ -210,8 +208,6 @@ void tipc_msg_dbg(struct print_buf *buf, struct tipc_msg *msg, const char *str)
210208
default:
211209
tipc_printf(buf, "UNKNOWN:%x", msg_type(msg));
212210
}
213-
if (msg_routed(msg))
214-
tipc_printf(buf, "ROUT:");
215211
if (msg_reroute_cnt(msg))
216212
tipc_printf(buf, "REROUTED(%u):",
217213
msg_reroute_cnt(msg));
@@ -232,8 +228,6 @@ void tipc_msg_dbg(struct print_buf *buf, struct tipc_msg *msg, const char *str)
232228
default:
233229
tipc_printf(buf, "UNKNOWN TYPE:%x", msg_type(msg));
234230
}
235-
if (msg_routed(msg))
236-
tipc_printf(buf, "ROUT:");
237231
if (msg_reroute_cnt(msg))
238232
tipc_printf(buf, "REROUTED(%u):", msg_reroute_cnt(msg));
239233
break;

‎net/tipc/msg.h‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,6 @@ static inline int msg_is_dest(struct tipc_msg *m, u32 d)
421421
return msg_short(m) || (msg_destnode(m) == d);
422422
}
423423

424-
static inline u32 msg_routed(struct tipc_msg *m)
425-
{
426-
if (likely(msg_short(m)))
427-
return 0;
428-
return (msg_destnode(m) ^ msg_orignode(m)) >> 11;
429-
}
430-
431424
static inline u32 msg_nametype(struct tipc_msg *m)
432425
{
433426
return msg_word(m, 8);

0 commit comments

Comments
 (0)