]> 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)
commit440d55ce67e13369050cb1d63c07c82f1f74ff52
treeb3e6e53158d3348cd6d6b7b473adfe2f1c5a8d6c
parentd8206e60dd510a70f242e52fc9504f9b6558f11c
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