From: Dmitry Yusupov Date: Tue, 23 Aug 2005 17:09:27 +0000 (-0700) Subject: [TCP]: Do TSO deferral even if tail SKB can go out now. X-Git-Tag: v2.6.13-rc7~55^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=14869c388673e8db3348ab3706fa6485d0f0cf95;p=linux-2.6-omap-h63xx.git [TCP]: Do TSO deferral even if tail SKB can go out now. If the tail SKB fits into the window, it is still benefitical to defer until the goal percentage of the window is available. This give the application time to feed more data into the send queue and thus results in larger TSO frames going out. Patch from Dmitry Yusupov . Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 566045e5843..dd30dd137b7 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -925,10 +925,6 @@ static int tcp_tso_should_defer(struct sock *sk, struct tcp_sock *tp, struct sk_ limit = min(send_win, cong_win); - /* If sk_send_head can be sent fully now, just do it. */ - if (skb->len <= limit) - return 0; - if (sysctl_tcp_tso_win_divisor) { u32 chunk = min(tp->snd_wnd, tp->snd_cwnd * tp->mss_cache);