projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c63f1
)
[TCP] FRTO: frto_counter modulo-op converted to two assignments
author
Ilpo Järvinen
<ilpo.jarvinen@helsinki.fi>
Thu, 22 Feb 2007 07:07:27 +0000
(23:07 -0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:23:10 +0000
(22:23 -0700)
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
|
blame
|
history
diff --git
a/net/ipv4/tcp_input.c
b/net/ipv4/tcp_input.c
index 7213740477ee3aec386f1a5eb20d7ca00aa4ebee..9dc5754141e920acea444167b5f5934ea27607a3 100644
(file)
--- a/
net/ipv4/tcp_input.c
+++ b/
net/ipv4/tcp_input.c
@@
-2551,11
+2551,11
@@
static void tcp_process_frto(struct sock *sk, u32 prior_snd_una, int flag)
if (tp->frto_counter == 1) {
tp->snd_cwnd = tcp_packets_in_flight(tp) + 2;
+ tp->frto_counter = 2;
} else /* frto_counter == 2 */ {
tcp_conservative_spur_to_response(tp);
+ tp->frto_counter = 0;
}
-
- tp->frto_counter = (tp->frto_counter + 1) % 3;
}
/* This routine deals with incoming acks, but not outgoing ones. */