]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: refresh tp timestamp before tcp_mtu_probe()
authorEric Dumazet <edumazet@google.com>
Fri, 27 Oct 2017 04:21:40 +0000 (21:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Nov 2017 10:30:38 +0000 (11:30 +0100)
commitf79ee663ca8d163fb824859c016c14ee1970b8c5
treef5429b1efbcb81cc1986f3c863c50e39fd02160f
parente46f100e9bc043664a5272b0451483dab4738a86
tcp: refresh tp timestamp before tcp_mtu_probe()

[ Upstream commit ee1836aec4f5a977c1699a311db4d9027ef21ac8 ]

In the unlikely event tcp_mtu_probe() is sending a packet, we
want tp->tcp_mstamp being as accurate as possible.

This means we need to call tcp_mstamp_refresh() a bit earlier in
tcp_write_xmit().

Fixes: 385e20706fac ("tcp: use tp->tcp_mstamp in output path")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_output.c