netdev
[Top] [All Lists]

Re: packet re-ordering on SMP machines.

To: ak@xxxxxxx (Andi Kleen)
Subject: Re: packet re-ordering on SMP machines.
From: kuznet@xxxxxxxxxxxxx
Date: Tue, 27 Aug 2002 17:06:30 +0400 (MSD)
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20020827142004.C4358@xxxxxxxxxxxxx> from "Andi Kleen" at Aug 27, 2 04:45:00 pm
Sender: netdev-bounce@xxxxxxxxxxx
Hello!

> Of course. The only problem is that the clock can be non mononotonous 
> sometimes and not be in sync with gettimeofday, but at least the kernel 
> users of packet timestamps do not care.

What kernel users? Where did you find them? :-)


> The only problem is the socket option, but it is obscure enough that I 
> would not worry too much about it.

I am very sorry, but passing timestamp to user level is the only purpose
of timestamping and it _MUST_ be monotonic and synchronous to time of day,
otherwise it is completely useless.

Shortly, this timestmap must be synchronous to timeofday.

> > > - Implement lockless

You talk about this for ages. :-)


Actually, the problem is solved very easily. Deprecate SIOCGSTAMP,
and either count users of SO_TIMESTAMP and enable timestamping only
when it is required, or, alternatively, to move retrirval timestamp to socket
level.

Alexey

<Prev in Thread] Current Thread [Next in Thread>