]> 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)
commit06ad079aca25725a2e05f7216fc84b943c4e9ad3
tree4d28b821e9e14fc5d73a5d12272ce8b817d32ef4
parenta27612fb79db5af7a9e49bd82181cc09fa122736
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: 208815e1a617 ("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