aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r--net/ipv4/tcp_output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 9a985b55e7d8..7c50271ddc30 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -1230,7 +1230,8 @@ static int tcp_tso_should_defer(struct sock *sk, struct sk_buff *skb)
1230 goto send_now; 1230 goto send_now;
1231 1231
1232 /* Defer for less than two clock ticks. */ 1232 /* Defer for less than two clock ticks. */
1233 if (!tp->tso_deferred && ((jiffies<<1)>>1) - (tp->tso_deferred>>1) > 1) 1233 if (tp->tso_deferred &&
1234 ((jiffies << 1) >> 1) - (tp->tso_deferred >> 1) > 1)
1234 goto send_now; 1235 goto send_now;
1235 1236
1236 in_flight = tcp_packets_in_flight(tp); 1237 in_flight = tcp_packets_in_flight(tp);