aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2007-02-22 07:07:27 +0000
committerDavid S. Miller <[email protected]>2007-04-26 05:23:10 +0000
commit94d0ea7786714d78d7cb73144bb850254dd0bb78 (patch)
treef1164ec64d45fbfd978ec5f3a1f31ba628c6d8fe /net/ipv4/tcp_input.c
parent[TCP]: Don't enter to fast recovery while using FRTO (diff)
downloadkernel-94d0ea7786714d78d7cb73144bb850254dd0bb78.tar.gz
kernel-94d0ea7786714d78d7cb73144bb850254dd0bb78.zip
[TCP] FRTO: frto_counter modulo-op converted to two assignments
Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 7213740477ee..9dc5754141e9 100644
--- 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. */