tcp: replace tcp_time_stamp_raw()
authorEric Dumazet <edumazet@google.com>
Fri, 20 Oct 2023 12:57:40 +0000 (12:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2023 08:35:01 +0000 (09:35 +0100)
commit16cf6477741bdaa287d5e4531a1a503618a41a22
tree8dc3a25443b1a4c83a54eb58b42e85ee24975ad8
parent2a7c8d291ffeba69a47d8528987156f625cc05b0
tcp: replace tcp_time_stamp_raw()

In preparation of usec TCP TS support, remove tcp_time_stamp_raw()
in favor of tcp_clock_ts() helper. This helper will return a suitable
32bit result to feed TS values, depending on a socket field.

Also add tcp_tw_tsval() and tcp_rsk_tsval() helpers to factorize
the details.

We do not yet support usec timestamps.

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