Skip to content

Commit

Permalink
[TCP]: Do TSO deferral even if tail SKB can go out now.
Browse files Browse the repository at this point in the history
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 <dima@neterion.com>.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dmitry Yusupov authored and David S. Miller committed Aug 23, 2005
1 parent f6fdd7d commit 14869c3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 14869c3

Please sign in to comment.