From: Ilpo Järvinen Date: Thu, 22 Feb 2007 07:06:03 +0000 (-0800) Subject: [TCP] FRTO: Response should reset also snd_cwnd_cnt X-Git-Tag: v2.6.22-rc1~1128^2~439 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=aa8b6a7ad147dfbaaf10368ff15df9418b670d8b;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index cc935c8a6aa..924b2e6d7d1 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, static void tcp_conservative_spur_to_response(struct tcp_sock *tp) { tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_ssthresh); + tp->snd_cwnd_cnt = 0; tcp_moderate_cwnd(tp); }