DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>
To: "Montorsi, Francesco" <fmontorsi@empirix.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Accurate timestamps in received packets
Date: Sat, 10 Oct 2015 04:52:30 +0000	[thread overview]
Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09090209D3D5@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <825e846fd8934cc0b34293a8a1542bd2@bilemail1.empirix.com>

Hi Francesco,
Why not searching ieee1588 in the dpdk git repository?  Surely you'll find something.

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Montorsi, Francesco
> Sent: Friday, October 9, 2015 11:30 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] Accurate timestamps in received packets
> 
> Hi all,
> I'm using rte_eth_rx_burst() to successfully retrieve packets from a DPDK-
> enabled port. I can process the packet and everything works fine. My only issue
> is that I cannot find any mean to retrieve a timestamp for every single packet. As
> a dirty-workaround I'm using gettimeofday() to timestamp incoming packets but
> I would rather like to retrieve a more accurate and realistic timestamp from the
> Ethernet PHY layer instead. For example if I receive 32 packets in a single burst
> I'm just assigning the packets timestamp with 1ns of difference (using
> gettimeofday() for the initial time offset).
> 
> Is there a way to retrieve a realistic timestamp from the Ethernet PHY layer?
> 
> I found this patch searching on the web:
> 
> http://www.wand.net.nz/trac/libtrace/browser/Intel%20DPDK%20Patches/hard
> ware_timestamp.patch
> that is however related to an older DPDK version and works only for INTEL
> 82580 controllers... do you know if that simple patch linked above could be
> similarly ported to Intel 82599 and 82571 controllers? Is there any better/easier
> way to do that?
> 
> Thanks a lot,
> 
> Francesco Montorsi
> 
> 

  reply	other threads:[~2015-10-10  4:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-09 15:30 Montorsi, Francesco
2015-10-10  4:52 ` Lu, Wenzhuo [this message]
2015-10-12  8:26   ` Montorsi, Francesco
2015-10-12  8:35     ` Mcnamara, John
2015-10-12 12:25       ` Montorsi, Francesco

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=6A0DE07E22DDAD4C9103DF62FEBC09090209D3D5@shsmsx102.ccr.corp.intel.com \
    --to=wenzhuo.lu@intel.com \
    --cc=dev@dpdk.org \
    --cc=fmontorsi@empirix.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 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).