DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Subject: Getting useful Rx timestamps for packet capture
Date: Thu, 19 Sep 2024 14:48:49 -0700	[thread overview]
Message-ID: <20240919144849.1f15e1d6@hermes.local> (raw)

Current DPDK support for timestamp is device dependent.
This is bad/broken for things like packet capture which
could be using the timestamp to get more accurate data into
the capture file.

Linux network timestamps are in timespec which is in nano
seconds since 1/1/1970. Pcapng typically uses 64 bit nanoseconds
since 1/1/1970.

It would be best if the drivers all did the conversion to
a standard format (ns since 1/1/1970). If the value read from
the hardware is in other units, then it should be scaled
in the PMD

                 reply	other threads:[~2024-09-19 21:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20240919144849.1f15e1d6@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    /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).