]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: don't reset stale broadcast send link
authorJon Paul Maloy <jon.maloy@ericsson.com>
Mon, 21 Aug 2017 15:59:30 +0000 (17:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Aug 2017 20:37:45 +0000 (13:37 -0700)
commit1cbb5e20c4e3cdebd8b08e3afbe1e98192c83da9
tree2a5a284828650f3d7da6b84d81b12d394d76c085
parent0fe994a1971bb624c26efa5f9fda6f0765eba638
tipc: don't reset stale broadcast send link

When the broadcast send link after 100 attempts has failed to
transfer a packet to all peers, we consider it stale, and reset
it. Thereafter it needs to re-synchronize with the peers, something
currently done by just resetting and re-establishing all links to
all peers. This has turned out to be overkill, with potentially
unwanted consequences for the remaining cluster.

A closer analysis reveals that this can be done much simpler. When
this kind of failure happens, for reasons that may lie outside the
TIPC protocol, it is typically only one peer which is failing to
receive and acknowledge packets. It is hence sufficient to identify
and reset the links only to that peer to resolve the situation, without
having to reset the broadcast link at all. This solution entails a much
lower risk of negative consequences for the own node as well as for
the overall cluster.

We implement this change in this commit.

Reviewed-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bearer.c
net/tipc/bearer.h
net/tipc/link.c
net/tipc/node.c