• Eric Dumazet's avatar
    tcp: defer xmit timer reset in tcp_xmit_retransmit_queue() · 916e6d1a
    Eric Dumazet authored
    As hinted in prior change ("tcp: refine tcp_pacing_delay()
    for very low pacing rates"), it is probably best arming
    the xmit timer only when all the packets have been scheduled,
    rather than when the head of rtx queue has been re-sent.
    
    This does matter for flows having extremely low pacing rates,
    since their tp->tcp_wstamp_ns could be far in the future.
    
    Note that the regular xmit path has a stronger limit
    in tcp_small_queue_check(), meaning it is less likely to
    go beyond the pacing horizon.
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    916e6d1a
tcp_output.c 113 KB