tcp: early retransmit: delayed fast retransmit
authorYuchung Cheng <ycheng@google.com>
Wed, 2 May 2012 13:30:04 +0000 (13:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2012 00:56:10 +0000 (20:56 -0400)
commit750ea2bafa55aaed208b2583470ecd7122225634
tree7656d7697566b0cecc7fbbdd8dbae288bca6d7e3
parenteed530b6c67624db3f2cf477bac7c4d005d8f7ba
tcp: early retransmit: delayed fast retransmit

Implementing the advanced early retransmit (sysctl_tcp_early_retrans==2).
Delays the fast retransmit by an interval of RTT/4. We borrow the
RTO timer to implement the delay. If we receive another ACK or send
a new packet, the timer is cancelled and restored to original RTO
value offset by time elapsed.  When the delayed-ER timer fires,
we enter fast recovery and perform fast retransmit.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
include/net/tcp.h
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c
net/ipv4/tcp_timer.c