]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: use tp->tcp_mstamp in output path
authorEric Dumazet <edumazet@google.com>
Tue, 16 May 2017 21:00:00 +0000 (14:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 20:06:01 +0000 (16:06 -0400)
commit208815e1a61760f8a1f1274e2a5740ab5a4492d9
treeb3e6e53158d3348cd6d6b7b473adfe2f1c5a8d6c
parente640ade9ef5f84472acc2a34b8210597338c0a94
tcp: use tp->tcp_mstamp in output path

Idea is to later convert tp->tcp_mstamp to a full u64 counter
using usec resolution, so that we can later have fine
grained TCP TS clock (RFC 7323), regardless of HZ value.

We try to refresh tp->tcp_mstamp only when necessary.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv4/tcp_recovery.c
net/ipv4/tcp_timer.c