Skip to content

Commit 5adeb17

Browse files
ajstephensPaul Gortmaker
authored andcommitted
tipc: Remove obsolete manipulation of message re-route count field
Eliminates code that increments and validates the re-route count field of payload messages, since the elimination of multi-cluster support means that it is no longer necessary for TIPC to forward incoming messages to another node. (The obsolete code was incorrect anyway, since it incorrectly incremented the re-route count field of messages that originated on the node that forwarded the message.) Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent ab7e11d commit 5adeb17

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎net/tipc/net.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,6 @@ void tipc_net_route_msg(struct sk_buff *buf)
141141
return;
142142
msg = buf_msg(buf);
143143

144-
msg_incr_reroute_cnt(msg);
145-
if (msg_reroute_cnt(msg) > 6) {
146-
if (msg_errcode(msg)) {
147-
buf_discard(buf);
148-
} else {
149-
tipc_reject_msg(buf, msg_destport(msg) ?
150-
TIPC_ERR_NO_PORT : TIPC_ERR_NO_NAME);
151-
}
152-
return;
153-
}
154-
155144
/* Handle message for this node */
156145
dnode = msg_short(msg) ? tipc_own_addr : msg_destnode(msg);
157146
if (tipc_in_scope(dnode, tipc_own_addr)) {

0 commit comments

Comments
 (0)