]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: remove joining group member from congested list
authorJon Maloy <jon.maloy@ericsson.com>
Wed, 20 Dec 2017 10:03:15 +0000 (11:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2017 19:56:48 +0000 (14:56 -0500)
commit2694d1ed0d50089a970fd494e98f28c1ebbf2c0e
tree3844bdbeeebe378da5804ed7642dcbf427674ed3
parent0b8763f61ad24ec99c7221409d2e0cf2d64dac93
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>
net/tipc/group.c