diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2007-02-22 02:06:03 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:23:08 -0400 |
commit | aa8b6a7ad147dfbaaf10368ff15df9418b670d8b (patch) | |
tree | 585faa6ca42629048ec71c0f8d374a845462a0fb | |
parent | 95c4922bf9330eb2c71b752359dd89c4e166f3c5 (diff) |
[TCP] FRTO: Response should reset also snd_cwnd_cnt
Since purpose is to reduce CWND, we prevent immediate growth. This
is not a major issue nor is "the correct way" specified anywhere.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/tcp_input.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index cc935c8a6aae..924b2e6d7d15 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -2490,6 +2490,7 @@ static int tcp_ack_update_window(struct sock *sk, struct tcp_sock *tp, | |||
2490 | static void tcp_conservative_spur_to_response(struct tcp_sock *tp) | 2490 | static void tcp_conservative_spur_to_response(struct tcp_sock *tp) |
2491 | { | 2491 | { |
2492 | tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_ssthresh); | 2492 | tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_ssthresh); |
2493 | tp->snd_cwnd_cnt = 0; | ||
2493 | tcp_moderate_cwnd(tp); | 2494 | tcp_moderate_cwnd(tp); |
2494 | } | 2495 | } |
2495 | 2496 | ||