diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_output.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 163cf5fc0119..af354c98fdb5 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -1640,8 +1640,11 @@ static bool tcp_tso_should_defer(struct sock *sk, struct sk_buff *skb) | |||
1640 | goto send_now; | 1640 | goto send_now; |
1641 | } | 1641 | } |
1642 | 1642 | ||
1643 | /* Ok, it looks like it is advisable to defer. */ | 1643 | /* Ok, it looks like it is advisable to defer. |
1644 | tp->tso_deferred = 1 | (jiffies << 1); | 1644 | * Do not rearm the timer if already set to not break TCP ACK clocking. |
1645 | */ | ||
1646 | if (!tp->tso_deferred) | ||
1647 | tp->tso_deferred = 1 | (jiffies << 1); | ||
1645 | 1648 | ||
1646 | return true; | 1649 | return true; |
1647 | 1650 | ||