DPDK usage discussions
 help / color / mirror / Atom feed
From: Filip Janiszewski <contact@filipjaniszewski.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Time-stamping from 18.05 to 19.02
Date: Fri, 1 Mar 2019 09:01:29 +0100	[thread overview]
Message-ID: <3255fe97-0193-5632-d39e-adc4d7882a40@filipjaniszewski.com> (raw)

Hi,

In order to understand how DPDK handle HW timestamps (which is very
confusing between version) I've prepare a small DPDK test application
which capture packets on a give port and print some information, like
pkt_len, timestamp etc - very basic stuff.

I've enabled the offload DEV_RX_OFFLOAD_TIMESTAMP at port/queue level,
and built the application with DPDK 18.05.

The captured packets are valid and although the hardware timestamp is
crappy I still can see something, example output:

"queue 1, len 139, timestamp (1) 55659417086261"

from:

.
fprintf(stderr,"queue %d, len %"PRIu32", timestamp (%d) %"PRIu64,
queue_idx,
pkt_bufs[0]->pkt_len,
( int )( 0 != ( pkt_bufs[0]->ol_flags & PKT_RX_TIMESTAMP ) ),
pkt_bufs[0]->timestamp);
.

(Where pkt_bufs is an array of mbufs, there is a check before the
fprintf that verify something has been captured, so the code is "safe"..
but ugly (hey, that's a test app after all..)

The PKT_RX_TIMESTAMP flag is set, which make sense..

Then i switched to DPDK 19.02 and recompiled, the only change in the
code that was required was to remove the line where i set hw_timestamp
to 1 in rte_eth_rxmode, this field does not exist anymore.

With this new DPDK the packets are not coming with any timestamp and
PKT_RX_TIMESTAMP in ol_flags is not set, what has changed between those
two DPDK relase (major vs stable) and what should I do to enable
timestamping?

Thanks

-- 
BR, Filip
+48 666 369 823

                 reply	other threads:[~2019-03-01  8:01 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=3255fe97-0193-5632-d39e-adc4d7882a40@filipjaniszewski.com \
    --to=contact@filipjaniszewski.com \
    --cc=users@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).