]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: introduce tcp_jiffies32
authorEric Dumazet <edumazet@google.com>
Tue, 16 May 2017 21:00:01 +0000 (14:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 20:06:01 +0000 (16:06 -0400)
commit4f6ce257775622dbb4d68594269f365232512277
tree3d6a1727aec027cccc9c14b1a8c0f52a6ab291fb
parent440d55ce67e13369050cb1d63c07c82f1f74ff52
tcp: introduce tcp_jiffies32

We abuse tcp_time_stamp for two different cases :

1) base to generate TCP Timestamp options (RFC 7323)

2) A 32bit version of jiffies since some TCP fields
   are 32bit wide to save memory.

Since we want in the future to have 1ms TCP TS clock,
regardless of HZ value, we want to cleanup things.

tcp_jiffies32 is the truncated jiffies value,
which will be used only in places where we want a 'host'
timestamp.

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>
include/net/tcp.h