From: Per Hurtig Date: Thu, 12 Jun 2014 15:08:32 +0000 (+0200) Subject: tcp: fixing TLP's FIN recovery X-Git-Tag: MMI-PSA29.97-13-9~12072^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bef1909ee3ed1ca39231b260a8d3b4544ecd0c8f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git tcp: fixing TLP's FIN recovery 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 Signed-off-by: Eric Dumazet Acked-by: Nandita Dukkipati Acked-by: Neal Cardwell Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index ad7549f1d0ad..819bf0c8fbde 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -2131,9 +2131,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))