tipc: simplify stale link failure criteria
authorJon Maloy <jon.maloy@ericsson.com>
Tue, 25 Jun 2019 15:36:43 +0000 (17:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jun 2019 20:28:57 +0000 (13:28 -0700)
commit77cf8edbc0e7db6d68d1a49cf954849fb92cfa7c
tree809e7902f006dbecbd37a6f666325870930118a1
parent489ce2f42514b4324e5c63e93ae7570cab995254
tipc: simplify stale link failure criteria

In commit a4dc70d46cf1 ("tipc: extend link reset criteria for stale
packet retransmission") we made link retransmission failure events
dependent on the link tolerance, and not only of the number of failed
retransmission attempts, as we did earlier. This works well. However,
keeping the original, additional criteria of 99 failed retransmissions
is now redundant, and may in some cases lead to failure detection
times in the order of minutes instead of the expected 1.5 sec link
tolerance value.

We now remove this criteria altogether.

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/link.c