diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2007-06-12 19:16:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-06-12 19:16:44 -0400 |
commit | af15cc7b858c7653443ab64db2e41b69506450ee (patch) | |
tree | 79b746ec4f6edb3d73d638096b5a249a3f57d85e /net/ipv4 | |
parent | 3d7dbeac58d0669c37e35a3b91bb41c0146395ce (diff) |
[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: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 74683d81c3f1..ed4a1bda822d 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -2037,7 +2037,7 @@ static void tcp_try_to_open(struct sock *sk, int flag) | |||
2037 | { | 2037 | { |
2038 | struct tcp_sock *tp = tcp_sk(sk); | 2038 | struct tcp_sock *tp = tcp_sk(sk); |
2039 | 2039 | ||
2040 | tp->left_out = tp->sacked_out; | 2040 | tcp_sync_left_out(tp); |
2041 | 2041 | ||
2042 | if (tp->retrans_out == 0) | 2042 | if (tp->retrans_out == 0) |
2043 | tp->retrans_stamp = 0; | 2043 | tp->retrans_stamp = 0; |