Skip to content

Commit 72b0094

Browse files
Eric Dumazetdavem330
authored andcommitted
tcp: switch tcp_clock_ns() to CLOCK_TAI base
TCP pacing is either implemented in sch_fq or internally. We have the goal of being able to offload pacing on the NICS. TCP will soon provide per skb skb->tstamp as early departure time. Like ETF in commit 25db26a ("net/sched: Introduce the ETF Qdisc") we chose CLOCK_T as the clock base, so that TCP and pacers can share a common clock, to get better RTT samples (without pacing artificially inflating these samples). Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4f4b93a commit 72b0094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/tcp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ void tcp_send_window_probe(struct sock *sk);
732732

733733
static inline u64 tcp_clock_ns(void)
734734
{
735-
return local_clock();
735+
return ktime_get_tai_ns();
736736
}
737737

738738
static inline u64 tcp_clock_us(void)

0 commit comments

Comments
 (0)