summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorIlpo Järvinen2007-11-26 13:17:38 +0100
committerDavid S. Miller2008-01-28 23:55:05 +0100
commit8512430e554a84275669f78f86dce18566d5cf7a (patch)
tree86c3743da48dbe20c2eda691b957310dd0181ad2 /net/ipv4/tcp_output.c
parent[NET]: Make macro to specify the ptype_base size (diff)
downloadkernel-qcow2-linux-8512430e554a84275669f78f86dce18566d5cf7a.tar.gz
kernel-qcow2-linux-8512430e554a84275669f78f86dce18566d5cf7a.tar.xz
kernel-qcow2-linux-8512430e554a84275669f78f86dce18566d5cf7a.zip
[TCP]: Move FRTO checks out from write queue abstraction funcs
Better place exists in update_send_head (other non-queue related adjustments are done there as well) which is the only caller of tcp_advance_send_head (now that the bogus call from mtu_probe is gone). Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r--net/ipv4/tcp_output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 030fc69ea217..546f385a405f 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -80,6 +80,10 @@ static void update_send_head(struct sock *sk, struct sk_buff *skb)
tcp_advance_send_head(sk, skb);
tp->snd_nxt = TCP_SKB_CB(skb)->end_seq;
tcp_packets_out_inc(sk, skb);
+
+ /* Don't override Nagle indefinately with F-RTO */
+ if (tp->frto_counter == 2)
+ tp->frto_counter = 3;
}
/* SND.NXT, if window was not shrunk.