* Is it possible to get Rx timestamps in skb->tstamp? @ 2018-09-19 13:03 David Howells 2018-09-19 13:16 ` Toke Høiland-Jørgensen 0 siblings, 1 reply; 3+ messages in thread From: David Howells @ 2018-09-19 13:03 UTC (permalink / raw) To: netdev; +Cc: dhowells Hi, Is it possible to tell a UDP socket that you'd like it to put reception timestamps in skb->tstamp? For some reason, I seem to remember that the kernel used to put something in there - and AF_RXRPC makes use of it. David ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is it possible to get Rx timestamps in skb->tstamp? 2018-09-19 13:03 Is it possible to get Rx timestamps in skb->tstamp? David Howells @ 2018-09-19 13:16 ` Toke Høiland-Jørgensen 2018-09-19 13:43 ` David Howells 0 siblings, 1 reply; 3+ messages in thread From: Toke Høiland-Jørgensen @ 2018-09-19 13:16 UTC (permalink / raw) To: David Howells, netdev; +Cc: dhowells David Howells <dhowells@redhat.com> writes: > Hi, > > 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 -Toke ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is it possible to get Rx timestamps in skb->tstamp? 2018-09-19 13:16 ` Toke Høiland-Jørgensen @ 2018-09-19 13:43 ` David Howells 0 siblings, 0 replies; 3+ messages in thread From: David Howells @ 2018-09-19 13:43 UTC (permalink / raw) To: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?=; +Cc: dhowells, netdev Toke Høiland-Jørgensen <toke@toke.dk> 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-09-19 19:21 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-09-19 13:03 Is it possible to get Rx timestamps in skb->tstamp? David Howells 2018-09-19 13:16 ` Toke Høiland-Jørgensen 2018-09-19 13:43 ` David Howells
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).