From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: Is it possible to get Rx timestamps in skb->tstamp? Date: Wed, 19 Sep 2018 14:43:04 +0100 Message-ID: <10302.1537364584@warthog.procyon.org.uk> References: <875zz1k4pv.fsf@toke.dk> <9873.1537362199@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Cc: dhowells@redhat.com, netdev@vger.kernel.org To: Toke =?us-ascii?Q?=3D=3Futf-8=3FQ=3FH=3DC3=3DB8iland-J=3DC3=3DB8rgense?= =?us-ascii?Q?n=3F=3D?= Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43150 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731338AbeISTVF (ORCPT ); Wed, 19 Sep 2018 15:21:05 -0400 In-Reply-To: <875zz1k4pv.fsf@toke.dk> Sender: netdev-owner@vger.kernel.org List-ID: Toke Høiland-Jørgensen wrote: > > Is it possible to tell a UDP socket that you'd like it to put > > reception timestamps in skb->tstamp? > > I think you probably want SO_TIMESTAMP*? > > See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/networking/timestamping.txt That seems to work. I thought that only affected recvmsg() putting the timestamp into the ancillary data buffer, but apparently not. Thanks, David