• Ilpo Järvinen's avatar
    tcp: fix lost_cnt_hint miscounts · 59a08cba
    Ilpo Järvinen authored
    It is possible that lost_cnt_hint gets underflow in
    tcp_clean_rtx_queue because the cumulative ACK can cover
    the segment where lost_skb_hint points to only partially,
    which means that the hint is not cleared, opposite to what
    my (earlier) comment claimed.
    
    Also I don't agree what I ended up writing about non-trivial
    case there to be what I intented to say. It was not supposed
    to happen that the hint won't get cleared and we underflow
    in any scenario.
    
    In general, this is quite hard to trigger in practice.
    Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    59a08cba
tcp_input.c 164 KB