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

Commit af15cc7b authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by David S. Miller
Browse files

[TCP]: Fix left_out setting during FRTO



Without FRTO, the tcp_try_to_open is never called with
lost_out > 0 (see tcp_time_to_recover). However, when FRTO is
enabled, the !tp->lost condition is not used until end of FRTO
because that way TCP avoids premature entry to fast recovery
during FRTO.

Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3d7dbeac
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2037,7 +2037,7 @@ static void tcp_try_to_open(struct sock *sk, int flag)
{
{
	struct tcp_sock *tp = tcp_sk(sk);
	struct tcp_sock *tp = tcp_sk(sk);


	tp->left_out = tp->sacked_out;
	tcp_sync_left_out(tp);


	if (tp->retrans_out == 0)
	if (tp->retrans_out == 0)
		tp->retrans_stamp = 0;
		tp->retrans_stamp = 0;