]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: refresh tcp_mstamp from timers callbacks
authorEric Dumazet <edumazet@google.com>
Wed, 13 Dec 2017 02:22:52 +0000 (18:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2017 21:04:04 +0000 (16:04 -0500)
commitb1d90f2a8a1daadef40f0fcea42cea7431d9c408
tree4d28b821e9e14fc5d73a5d12272ce8b817d32ef4
parentda9604a7c5523d5d53e71d3d0bbdfae39724f344
tcp: refresh tcp_mstamp from timers callbacks

Only the retransmit timer currently refreshes tcp_mstamp

We should do the same for delayed acks and keepalives.

Even if RFC 7323 does not request it, this is consistent to what linux
did in the past, when TS values were based on jiffies.

Fixes: 440d55ce67e1 ("tcp: use tp->tcp_mstamp in output path")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Cc: Mike Maloney <maloney@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Mike Maloney <maloney@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_timer.c