diff options
author | Per Hurtig <per.hurtig@kau.se> | 2014-06-12 17:08:32 +0200 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-10-17 09:43:19 +0200 |
commit | d24c1c0f7c31c89465ab1df21bd9fcbe0c6c59ac (patch) | |
tree | a40f69691a406f6085e61d150bb1993fe7836147 /net | |
parent | e6fd6243cdc7434e7001589099394321a1670b47 (diff) | |
download | lwn-d24c1c0f7c31c89465ab1df21bd9fcbe0c6c59ac.tar.gz lwn-d24c1c0f7c31c89465ab1df21bd9fcbe0c6c59ac.zip |
tcp: fixing TLP's FIN recovery
[ Upstream commit bef1909ee3ed1ca39231b260a8d3b4544ecd0c8f ]
Fix to a problem observed when losing a FIN segment that does not
contain data. In such situations, TLP is unable to recover from
*any* tail loss and instead adds at least PTO ms to the
retransmission process, i.e., RTO = RTO + PTO.
Signed-off-by: Per Hurtig <per.hurtig@kau.se>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Nandita Dukkipati <nanditad@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp_output.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 1c753c5f9de7..4c0e55f14f2e 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -2045,9 +2045,7 @@ void tcp_send_loss_probe(struct sock *sk) if (WARN_ON(!skb || !tcp_skb_pcount(skb))) goto rearm_timer; - /* Probe with zero data doesn't trigger fast recovery. */ - if (skb->len > 0) - err = __tcp_retransmit_skb(sk, skb); + err = __tcp_retransmit_skb(sk, skb); /* Record snd_nxt for loss detection. */ if (likely(!err)) |