summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2013-03-22 17:53:09 +0100
committerDavid S. Miller <davem@davemloft.net>2013-03-22 17:53:09 +0100
commitea3d1cc285bf1ae1fa81b47418cd7fd79990bb06 (patch)
treea5b4cd52ec5e27d169bf3115d732d2106bc78fc2 /net/ipv4
parentdecnet: Move rtm_dn_policy to dn_route to make it available if !CONFIG_DECNET... (diff)
parenttcp: preserve ACK clocking in TSO (diff)
downloadlinux-ea3d1cc285bf1ae1fa81b47418cd7fd79990bb06.tar.xz
linux-ea3d1cc285bf1ae1fa81b47418cd7fd79990bb06.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull to get the thermal netlink multicast group name fix, otherwise the assertion added in net-next to netlink to detect that kind of bug makes systems unbootable for some folks. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/tcp_output.c7
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)
goto send_now;
}
- /* Ok, it looks like it is advisable to defer. */
- tp->tso_deferred = 1 | (jiffies << 1);
+ /* Ok, it looks like it is advisable to defer.
+ * Do not rearm the timer if already set to not break TCP ACK clocking.
+ */
+ if (!tp->tso_deferred)
+ tp->tso_deferred = 1 | (jiffies << 1);
return true;