DPDK patches and discussions
 help / color / mirror / Atom feed
From: Tom Barbette <barbette@kth.se>
To: "zr@semihalf.com" <zr@semihalf.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: Shahaf Shuler <shahafs@mellanox.com>
Subject: Re: [dpdk-dev] [RFC PATCH 0/3] Add rte_eth_read_clock API
Date: Sat, 8 Dec 2018 12:07:42 +0000	[thread overview]
Message-ID: <1544270863117.53481@kth.se> (raw)
In-Reply-To: <1544027600-9390-1-git-send-email-zr@semihalf.com>

Hi Zyta,

This was my initial proposal, but after discussion with Shahaf Shuler we thought this was too far from the original intent of the function.
rte_eth_timesync_read_time is clearly identified as part of a set of function to use PTP synchronization. 
This clock is not "sync" in any way. More importantly, the returned value is not a timeval. So it's true this patch actually does a cast from timeval in ib_verbs, but it's already a "bad usage" in some sense because the value sitting in tv_nsec is not an amount of nsec but only an amount of ticks. I would be afraid some people seeing the timeval type of rte_eth_timesync_read_time would use it blindly.

But as far as I'm concerned, I can go with one or the other in our use cases...

Thanks,
Tom


________________________________________
De : zr@semihalf.com <zr@semihalf.com>
Envoyé : mercredi 5 décembre 2018 17:33
À : Tom Barbette; dev@dpdk.org
Cc : Zyta Szpak
Objet : Re: [RFC PATCH 0/3] Add rte_eth_read_clock API

From: Zyta Szpak <zr@semihalf.com>

I'd ask few questions: how is this new rte_ethdev_read_clock different from existing rte_eth_timesync_read_time ?
Is it that this new function does not convert the clock raw value into timespec? Would it be too much overhead to use the timespec type of value? Or do they intent to read different clocks?

  reply	other threads:[~2018-12-08 12:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-28  9:52 Tom Barbette
2018-11-28  9:52 ` [dpdk-dev] [RFC PATCH 1/3] rte_ethdev: Add API function to read dev clock Tom Barbette
2018-12-05 16:33   ` [dpdk-dev] [RFC PATCH 0/3] Add rte_eth_read_clock API zr
2018-12-08 12:07     ` Tom Barbette [this message]
2018-12-09  6:00   ` [dpdk-dev] [RFC PATCH 1/3] rte_ethdev: Add API function to read dev clock Shahaf Shuler
2018-11-28  9:52 ` [dpdk-dev] [RFC PATCH 2/3] mlx5: Implement support for read_clock Tom Barbette
2018-12-09  6:03   ` Shahaf Shuler
2018-11-28  9:52 ` [dpdk-dev] [RFC PATCH 3/3] rxtx_callbacks: Add support for HW timestamp Tom Barbette

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=1544270863117.53481@kth.se \
    --to=barbette@kth.se \
    --cc=dev@dpdk.org \
    --cc=shahafs@mellanox.com \
    --cc=zr@semihalf.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).