• Jon Maloy's avatar
    tipc: extend link reset criteria for stale packet retransmission · a4dc70d4
    Jon Maloy authored
    Currently a link is declared stale and reset if there has been 100
    repeated attempts to retransmit the same packet. However, in certain
    infrastructures we see that packet (NACK) duplicates and delays may
    cause such retransmit attempts to occur at a high rate, so that the
    peer doesn't have a reasonable chance to acknowledge the reception
    before the 100-limit is hit. This may take much less than the
    stipulated link tolerance time, and despite that probe/probe replies
    otherwise go through as normal.
    
    We now extend the criteria for link reset to also being time based.
    I.e., we don't reset the link until the link tolerance time is passed
    AND we have made 100 retransmissions attempts.
    Acked-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>
    a4dc70d4
link.c 57.6 KB