tree 9741bc479cedc00dec3eb123ed834527af7f3974
parent 63d886c96b2a580b1bf764de238ba3c63515b5ee
author David S. Miller <[EMAIL PROTECTED]> Wed, 06 Jul 2005 05:43:58 -0700
committer David S. Miller <[EMAIL PROTECTED]> Wed, 06 Jul 2005 05:43:58 -0700
[TCP]: Never TSO defer under periods of congestion.
Congestion window recover after loss depends upon the fact
that if we have a full MSS sized frame at the head of the
send queue, we will send it. TSO deferral can defeat the
ACK clocking necessary to exit cleanly from recovery.
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
net/ipv4/tcp_output.c | 3 +++
1 files changed, 3 insertions(+)
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -909,6 +909,9 @@ static int tcp_tso_should_defer(struct s
if (TCP_SKB_CB(skb)->flags & TCPCB_FLAG_FIN)
return 0;
+ if (tp->ca_state != TCP_CA_Open)
+ return 0;
+
in_flight = tcp_packets_in_flight(tp);
BUG_ON(tcp_skb_pcount(skb) <= 1 ||
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html