All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Hartkopp <oliver@hartkopp.net>
To: Octavian Purdila <opurdila@ixiacom.com>
Cc: Andi Kleen <andi@firstfloor.org>, netdev@vger.kernel.org
Subject: Re: [rfc] new sk_buff member: hwstamp
Date: Mon, 14 Jul 2008 20:58:00 +0200	[thread overview]
Message-ID: <487BA1B8.5070006@hartkopp.net> (raw)
In-Reply-To: <200807142130.12375.opurdila@ixiacom.com>

Octavian Purdila wrote:
>> However i feel, that *one* nanosec resolution timestamp (as it already
>> exists inside the skbuff) is enough. AFAIK the timestamp is only set in
>> the netif_rx(), when it is not already set by the driver itself. For
>> that reason i would suggest to create some semi-intelligent offset
>> calculation inside the driver that makes the skb->tstamp value
>> correspond with the hw timestamp and therefore transports the high
>> resolution timestamp requirement into the userspace.
>>
>>     
>
> You mean something like here [1] ?
> [1] 
> http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc4/2.6.23-rc4-mm1/broken-out/sky2-hardware-receive-timestamp-counter.patch
>
>   

Yes - exactly :-)

> The problem for this approach in our usecase (one way delay measurement) is 
> that the real time clock of the CPUs (of the RX and TX ports) is not 
> synchronized, but the hw timestamp (implemented in the NIC/FPGA) is. 
>   

Is it necessary to have syncronized clocks on the different CPUs or is
it feasible to calculate a per-cpu-clock offset in your driver, so that
you can build a complete timing overview of your setup?

Regards,
Oliver


  reply	other threads:[~2008-07-14 19:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-14 15:43 [rfc] new sk_buff member: hwstamp Octavian Purdila
2008-07-14 17:25 ` Andi Kleen
2008-07-14 17:57   ` Oliver Hartkopp
2008-07-14 18:30     ` Octavian Purdila
2008-07-14 18:58       ` Oliver Hartkopp [this message]
2008-07-14 20:07         ` Octavian Purdila
2008-07-14 18:49   ` Octavian Purdila
2008-07-15  0:43 ` Stephen Hemminger
2008-07-15 10:39   ` Octavian Purdila

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=487BA1B8.5070006@hartkopp.net \
    --to=oliver@hartkopp.net \
    --cc=andi@firstfloor.org \
    --cc=netdev@vger.kernel.org \
    --cc=opurdila@ixiacom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.