projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95c4922
)
[TCP] FRTO: Response should reset also snd_cwnd_cnt
author
Ilpo Järvinen
<ilpo.jarvinen@helsinki.fi>
Thu, 22 Feb 2007 07:06:03 +0000
(23:06 -0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:23:08 +0000
(22:23 -0700)
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>
net/ipv4/tcp_input.c
patch
|
blob
|
history
diff --git
a/net/ipv4/tcp_input.c
b/net/ipv4/tcp_input.c
index cc935c8a6aae26d8c4a6cb0d8e8f8c8450712214..924b2e6d7d15f80be530c5d9afbd83eb72fe3a82 100644
(file)
--- 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);
}