diff options
| author | Eric Dumazet <[email protected]> | 2018-09-21 15:51:51 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-09-22 02:37:59 +0000 |
| commit | fd2bca2aa7893586887b2370e90e85bd0abc805e (patch) | |
| tree | 89c8caaff0ce2d2ad4268c45806ef35c03f11ebb /net/ipv4/tcp_output.c | |
| parent | tcp: provide earliest departure time in skb->tstamp (diff) | |
| download | kernel-fd2bca2aa7893586887b2370e90e85bd0abc805e.tar.gz kernel-fd2bca2aa7893586887b2370e90e85bd0abc805e.zip | |
tcp: switch internal pacing timer to CLOCK_TAI
Next patch will use tcp_wstamp_ns to feed internal
TCP pacing timer, so switch to CLOCK_TAI to share same base.
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
| -rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 957f7a0e21c0..a87068fa9b1a 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -1007,7 +1007,7 @@ static void tcp_internal_pacing(struct sock *sk, const struct sk_buff *skb) len_ns = (u64)skb->len * NSEC_PER_SEC; do_div(len_ns, rate); hrtimer_start(&tcp_sk(sk)->pacing_timer, - ktime_add_ns(ktime_get(), len_ns), + ktime_add_ns(ktime_get_tai_ns(), len_ns), HRTIMER_MODE_ABS_PINNED_SOFT); sock_hold(sk); } |
