• Jon Paul Maloy's avatar
    tipc: simplify link timer handling · 75b44b01
    Jon Paul Maloy authored
    Prior to this commit, the link timer has been running at a "continuity
    interval" of configured link tolerance/4. When a timer wakes up and
    discovers that there has been no sign of life from the peer during the
    previous interval, it divides its own timer interval by another factor
    four, and starts sending one probe per new interval. When the configured
    link tolerance time has passed without answer, i.e. after 16 unacked
    probes, the link is declared faulty and reset.
    
    This is unnecessary complex. It is sufficient to continue with the
    original continuity interval, and instead reset the link after four
    missed probe responses. This makes the timer handling in the link
    simpler, and opens up for some planned later changes in this area.
    This commit implements this change.
    Reviewed-by: default avatarRichard Alpe <richard.alpe@ericsson.com>
    Reviewed-by: default avatarErik Hugne <erik.hugne@ericsson.com>
    Reviewed-by: default avatarYing Xue <ying.xue@windriver.com>
    Signed-off-by: default avatarJon Maloy <jon.maloy@ericsson.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    75b44b01
link.c 60 KB