tcp: move tcp_ns_to_ts() to net/ipv4/syncookies.c
authorEric Dumazet <edumazet@google.com>
Fri, 20 Oct 2023 12:57:42 +0000 (12:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2023 08:35:01 +0000 (09:35 +0100)
commit003e07a1e48e9423647d2fef1c86b4caab3a94be
tree2f9ab2156cf5cb6b24543d4076ff954d619596e5
parentd1a02ed66fe62aa2edd77bd54e270ebc33bd12ff
tcp: move tcp_ns_to_ts() to net/ipv4/syncookies.c

tcp_ns_to_ts() is only used once from cookie_init_timestamp().

Also add the 'bool usec_ts' parameter to enable usec TS later.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/syncookies.c