DPDK usage discussions
 help / color / mirror / Atom feed
From: Raslan Darawsheh <rasland@mellanox.com>
To: Yuliang Li <yuliang.li@yale.edu>, "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] NIC rx timestamp
Date: Tue, 10 Jul 2018 10:13:34 +0000	[thread overview]
Message-ID: <DB5PR05MB1254C58DC2945C1CA1DE2489C25B0@DB5PR05MB1254.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <CAECc8jpE2uy3ZU8eABaxWzSTqoUFj3TzgqOie5gozFuwpC0tNQ@mail.gmail.com>

You can try it with testpmd as following:

port stop all
port config all rx-timestamp on
port start all
start


you will get all packets as following if running in rxonly mode.
port 1/queue 1: received 1 packets
  src=00:16:3E:23:D0:6D - dst=7C:FE:90:12:23:15 - type=0x8100 - length=1496 - nb_segs=1 - RSS hash=0xf32d0b79 - RSS queue=0x1 - timestamp 189810534625590  - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG  - sw ptype: L2_ETHER_VLAN L3_IPV4  - l2_len=18 - l3_len=20 - Receive queue=0x1
  ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_UNKNOWN PKT_RX_TIMESTAMP


Kindest regards,
Raslan Darawsheh

-----Original Message-----
From: users [mailto:users-bounces@dpdk.org] On Behalf Of Yuliang Li
Sent: Monday, July 9, 2018 6:56 PM
To: users@dpdk.org
Subject: [dpdk-users] NIC rx timestamp

Hi,

Is there any way to get the NIC (hardware) rx timestamp for every packet in dpdk?

Thanks,
--
Yuliang Li
PhD student
Department of Computer Science
Yale University

           reply	other threads:[~2018-07-10 10:13 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAECc8jpE2uy3ZU8eABaxWzSTqoUFj3TzgqOie5gozFuwpC0tNQ@mail.gmail.com>]

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=DB5PR05MB1254C58DC2945C1CA1DE2489C25B0@DB5PR05MB1254.eurprd05.prod.outlook.com \
    --to=rasland@mellanox.com \
    --cc=users@dpdk.org \
    --cc=yuliang.li@yale.edu \
    /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).