tcp: don't extend RTO on failed loss probe attempts
authorYuchung Cheng <ycheng@google.com>
Wed, 12 Aug 2015 18:18:18 +0000 (11:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2015 23:52:19 +0000 (16:52 -0700)
commitfcd16c0a95a8faf4d310f94d831b22f901c5a744
tree1ff1be5fd078e8e663d7f2aba1f67246a6758f34
parent646244b223090e379070d149312b222867e42aa6
tcp: don't extend RTO on failed loss probe attempts

If TLP was unable to send a probe, it extended the RTO to
now + icsk_rto. But extending the RTO makes little sense
if no TLP probe went out. With this commit, instead of
extending the RTO we re-arm it relative to the transmit time
of the write queue head.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Nandita Dukkipati <nanditad@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c