Skip to content

Commit

Permalink
[TCP]: Fix left_out setting during FRTO
Browse files Browse the repository at this point in the history
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: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Jun 12, 2007
1 parent 3d7dbea commit af15cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,7 @@ static void tcp_try_to_open(struct sock *sk, int flag)
{
struct tcp_sock *tp = tcp_sk(sk);

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

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

0 comments on commit af15cc7

Please sign in to comment.