tree fa5de8895166ae31371264544027941d469044f9
parent f6fdd7d9c273bb2a20ab467cb57067494f932fa3
author Dmitry Yusupov <[EMAIL PROTECTED]> Wed, 24 Aug 2005 00:09:27 -0700
committer David S. Miller <[EMAIL PROTECTED]> Wed, 24 Aug 2005 00:09:27 -0700

[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 <[EMAIL PROTECTED]>.

Signed-off-by: David S. Miller <[EMAIL PROTECTED]>

 net/ipv4/tcp_output.c |    4 ----
 1 files changed, 4 deletions(-)

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
@@ -925,10 +925,6 @@ static int tcp_tso_should_defer(struct s
        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);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to