]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Oct 2017 10:08:04 +0000 (19:08 +0900)
commit2b873166b03d608cec64e15ddf46321fd0bf8cf6
tree9e8261b2d52181178fba19ae314221e4235cc062
parent79d8a0f88e21e87cee99c0a52703bc8889e13391
tcp: refresh tp timestamp before tcp_mtu_probe()

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: 440d55ce67e1 ("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>
net/ipv4/tcp_output.c