]> 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)
commit69b29896185c4fd729d26fc79b88a4969278c496
tree3d6a1727aec027cccc9c14b1a8c0f52a6ab291fb
parent208815e1a61760f8a1f1274e2a5740ab5a4492d9
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