Thread (48 messages) 48 messages, 12 authors, 2021-12-01

Re: [PATCH bpf-next 09/10] bpf: Add a helper to issue timestamp cookies in XDP

From: Lorenz Bauer <hidden>
Date: 2021-10-27 08:34:45
Also in: bpf

On Fri, 22 Oct 2021 at 17:56, Maxim Mikityanskiy [off-list ref] wrote:
tcp_time_stamp_raw() uses ktime_get_ns(), while bpf_ktime_get_ns() uses
ktime_get_mono_fast_ns(). Is it fine to use ktime_get_mono_fast_ns()
instead of ktime_get_ns()? I'm a bit worried about this note in
Documentation/core-api/timekeeping.rst:

 > most drivers should never call them,
 > since the time is allowed to jump under certain conditions.
That depends on what happens when the timestamp is "off". Since you're
sending this value over the network I doubt that the two methods will
show a difference.

Lorenz

-- 
Lorenz Bauer  |  Systems Engineer
6th Floor, County Hall/The Riverside Building, SE1 7PB, UK

www.cloudflare.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help