aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorIlpo J�rvinen <[email protected]>2007-12-05 10:25:32 +0000
committerDavid S. Miller <[email protected]>2007-12-05 13:37:31 +0000
commit4e67d876ce07471e02be571038d5435a825f0215 (patch)
tree99735632828d178f6dd9bc9d036b6879bcdcbebe /net/ipv4/tcp_output.c
parent[TCP]: Move prior_in_flight collect to more robust place (diff)
downloadkernel-4e67d876ce07471e02be571038d5435a825f0215.tar.gz
kernel-4e67d876ce07471e02be571038d5435a825f0215.zip
[TCP]: NAGLE_PUSH seems to be a wrong way around
The comment in tcp_nagle_test suggests that. This bug is very very old, even 2.4.0 seems to have it. Signed-off-by: Ilpo J�rvinen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r--net/ipv4/tcp_output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index e5130a7fe181..f4c1eef89af0 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -1162,8 +1162,7 @@ int tcp_may_send_now(struct sock *sk)
return (skb &&
tcp_snd_test(sk, skb, tcp_current_mss(sk, 1),
(tcp_skb_is_last(sk, skb) ?
- TCP_NAGLE_PUSH :
- tp->nonagle)));
+ tp->nonagle : TCP_NAGLE_PUSH)));
}
/* Trim TSO SKB to LEN bytes, put the remaining data into a new packet