[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1326645750.5287.48.camel@edumazet-laptop>
Date: Sun, 15 Jan 2012 17:42:30 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: Anatoly Sivov <mm05@...l.ru>
Cc: netdev@...r.kernel.org
Subject: Re: why does skb->tstamp use getnstimeofday?
Le dimanche 15 janvier 2012 à 19:11 +0400, Anatoly Sivov a écrit :
> Hello everyone.
>
> struct sk_buff has a field tstamp, which is used for high resolution rtt
> calculation.
> All operations with this field are done directly or indirectly via ktime_*
> interface,
> which uses getnstimeofday function.
> My question is why does skb->tstamp use getnstimeofday?
> Isn't it better to use getrawmonotonic, where we are not inetrfered with
> ntp, for rtt calculation?
>
It's using this since day 0, so cannot be changed or break applications,
which expect timeofday, not monotonic.
monotonic time services were added later.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists