[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200703091939.42656.dada1@cosmosbay.com>
Date: Fri, 9 Mar 2007 19:39:42 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org, linux-arch@...r.kernel.org
Subject: [PATCH] NET : Adding SO_TIMESTAMPNS / SCM_TIMESTAMPNS support
Hi David
This patch is against net-2.6.22 git tree.
Thank you
[PATCH] NET : Adding SO_TIMESTAMPNS / SCM_TIMESTAMPNS support
Now that network timestamps use ktime_t infrastructure, we can add a new
SOL_SOCKET sockopt SO_TIMESTAMPNS.
This command is similar to SO_TIMESTAMP, but permits transmission of
a 'timespec struct' instead of a 'timeval struct' control message.
(nanosecond resolution instead of microsecond)
Control message is labelled SCM_TIMESTAMPNS instead of SCM_TIMESTAMP
A socket cannot mix SO_TIMESTAMP and SO_TIMESTAMPNS : the two modes are
mutually exclusive.
sock_recv_timestamp() became too big to be fully inlined so I added a
__sock_recv_timestamp() helper function.
Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
CC: linux-arch@...r.kernel.org
View attachment "SCM_TIMESTAMPNS.patch" of type "text/plain" (12347 bytes)
Powered by blists - more mailing lists