On Fri, 22 Oct 2021 at 17:56, Maxim Mikityanskiy <maximmi@xxxxxxxxxx> 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