Skip to content

Commit bb25c38

Browse files
Jon Maloydavem330
authored andcommitted
tipc: remove joining group member from congested list
When we receive a JOIN message from a peer member, the message may contain an advertised window value ADV_IDLE that permits removing the member in question from the tipc_group::congested list. However, since the removal has been made conditional on that the advertised window is *not* ADV_IDLE, we miss this case. This has the effect that a sender sometimes may enter a state of permanent, false, broadcast congestion. We fix this by unconditinally removing the member from the congested list before calling tipc_member_update(), which might potentially sort it into the list again. Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1c8e77f commit bb25c38

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎net/tipc/group.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,10 +689,8 @@ void tipc_group_proto_rcv(struct tipc_group *grp, bool *usr_wakeup,
689689
msg_set_grp_bc_seqno(ehdr, m->bc_syncpt);
690690
__skb_queue_tail(inputq, m->event_msg);
691691
}
692-
if (m->window < ADV_IDLE)
693-
tipc_group_update_member(m, 0);
694-
else
695-
list_del_init(&m->congested);
692+
list_del_init(&m->congested);
693+
tipc_group_update_member(m, 0);
696694
return;
697695
case GRP_LEAVE_MSG:
698696
if (!m)

0 commit comments

Comments
 (0)