• Yuchung Cheng's avatar
    tcp: consolidate PRR packet accounting · 6804973f
    Yuchung Cheng authored
    This patch series fixes an undo bug in fast recovery: the sender
    mistakenly undos the cwnd too early but continues fast retransmits
    until all pending data are acked. This also multiplies the SNMP
    stat PARTIALUNDO events by the degree of the network reordering.
    
    The first patch prepares the fix by consolidating the accounting
    of newly_acked_sacked in tcp_cwnd_reduction(), instead of updating
    newly_acked_sacked everytime sacked_out is adjusted.  Also pass
    acked and prior_unsacked as const type because they are readonly
    in the rest of recovery processing.
    Signed-off-by: default avatarYuchung Cheng <ycheng@google.com>
    Acked-by: default avatarNeal Cardwell <ncardwell@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6804973f
tcp_input.c 162 KB