mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
David S. Miller
parent
d1a02ed66f
commit
003e07a1e4
@@ -824,12 +824,6 @@ static inline u32 tcp_time_stamp_ms(const struct tcp_sock *tp)
|
||||
return div_u64(tp->tcp_mstamp, USEC_PER_MSEC);
|
||||
}
|
||||
|
||||
/* Convert a nsec timestamp into TCP TSval timestamp (ms based currently) */
|
||||
static inline u64 tcp_ns_to_ts(u64 ns)
|
||||
{
|
||||
return div_u64(ns, NSEC_PER_SEC / TCP_TS_HZ);
|
||||
}
|
||||
|
||||
void tcp_mstamp_refresh(struct tcp_sock *tp);
|
||||
|
||||
static inline u32 tcp_stamp_us_delta(u64 t1, u64 t0)
|
||||
|
||||
Reference in New Issue
Block a user