• Jon Paul Maloy's avatar
    tipc: interrupt link synchronization when a link goes down · 5ae2f8e6
    Jon Paul Maloy authored
    When we introduced the new link failover/synch mechanism
    in commit 6e498158
    ("tipc: move link synch and failover to link aggregation level"),
    we missed the case when the non-tunnel link goes down during the link
    synchronization period. In this case the tunnel link will remain in
    state LINK_SYNCHING, something leading to unpredictable behavior when
    the failover procedure is initiated.
    
    In this commit, we ensure that the node and remaining link goes
    back to regular communication state (SELF_UP_PEER_UP/LINK_ESTABLISHED)
    when one of the parallel links goes down. We also ensure that we don't
    re-enter synch mode if subsequent SYNCH packets arrive on the remaining
    link.
    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>
    5ae2f8e6
link.c 50 KB