Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bef1909e authored by Per Hurtig's avatar Per Hurtig Committed by David S. Miller
Browse files

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: default avatarPer Hurtig <per.hurtig@kau.se>
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Acked-by: default avatarNandita Dukkipati <nanditad@google.com>
Acked-by: default avatarNeal Cardwell <ncardwell@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fba0e1a3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2131,8 +2131,6 @@ 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);

	/* Record snd_nxt for loss detection. */