diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 9c34b97d365d..35feadf48030 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -1944,6 +1944,10 @@ static bool tcp_tso_should_defer(struct sock *sk, struct sk_buff *skb, | |||
1944 | if ((skb != tcp_write_queue_tail(sk)) && (limit >= skb->len)) | 1944 | if ((skb != tcp_write_queue_tail(sk)) && (limit >= skb->len)) |
1945 | goto send_now; | 1945 | goto send_now; |
1946 | 1946 | ||
1947 | /* If this packet won't get more data, do not wait. */ | ||
1948 | if (TCP_SKB_CB(skb)->eor) | ||
1949 | goto send_now; | ||
1950 | |||
1947 | win_divisor = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_tso_win_divisor); | 1951 | win_divisor = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_tso_win_divisor); |
1948 | if (win_divisor) { | 1952 | if (win_divisor) { |
1949 | u32 chunk = min(tp->snd_wnd, tp->snd_cwnd * tp->mss_cache); | 1953 | u32 chunk = min(tp->snd_wnd, tp->snd_cwnd * tp->mss_cache); |