From: "Pattan, Reshma" <reshma.pattan@intel.com>
To: Patrick Keroulas <patrick.keroulas@radio-canada.ca>,
"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [[PATCH v3 3/4] pdump: convert timestamp to nanoseconds on Rx path
Date: Wed, 2 Sep 2020 15:41:10 +0000 [thread overview]
Message-ID: <BN6PR11MB1555126911F4D3D9D6BE2BCCFF2F0@BN6PR11MB1555.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20200724202315.19533-4-patrick.keroulas@radio-canada.ca>
> -----Original Message-----
> + rte_eth_read_clock(port, &start_cycles);
> + rte_eth_get_clock_freq(port, &hz);
Do you need to check return value of these calls to handle -ENOTSUP? And avoid timestamping marking.
If -ENOTSUP, then hz value is 0 and using hz in function pdump_ts_to_ns() might be illegal.
> + gettimeofday(&now, NULL);
Same here, need to handle return value carefully?
Thanks,
Reshma
next prev parent reply other threads:[~2020-09-02 15:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-24 20:23 [dpdk-dev] [[PATCH v3 0/4] pdump HW Rx timestamps for mlx5 Patrick Keroulas
2020-07-24 20:23 ` [dpdk-dev] [[PATCH v3 1/4] net/mlx5: query device frequency Patrick Keroulas
2020-07-24 20:23 ` [dpdk-dev] [[PATCH v3 2/4] ethdev: add API to " Patrick Keroulas
2020-07-24 20:23 ` [dpdk-dev] [[PATCH v3 3/4] pdump: convert timestamp to nanoseconds on Rx path Patrick Keroulas
2020-09-02 15:41 ` Pattan, Reshma [this message]
2020-07-24 20:23 ` [dpdk-dev] [[PATCH v3 4/4] net/pcap: support hardware Tx timestamps Patrick Keroulas
2020-07-25 8:35 ` Tom Barbette
2020-07-25 11:51 ` Stephen Hemminger
2020-07-26 22:17 ` Stephen Hemminger
2020-10-06 16:25 ` [dpdk-dev] [[PATCH v3 0/4] pdump HW Rx timestamps for mlx5 Ferruh Yigit
2020-10-07 6:59 ` Morten Brørup
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=BN6PR11MB1555126911F4D3D9D6BE2BCCFF2F0@BN6PR11MB1555.namprd11.prod.outlook.com \
--to=reshma.pattan@intel.com \
--cc=dev@dpdk.org \
--cc=patrick.keroulas@radio-canada.ca \
/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).