From: Tom Barbette Subject: Re: [RFC PATCH 0/3] Add rte_eth_read_clock API Date: Sat, 8 Dec 2018 12:07:42 +0000 Message-ID: <1544270863117.53481@kth.se> References: <1543398732-79439-2-git-send-email-barbette@kth.se>, <1544027600-9390-1-git-send-email-zr@semihalf.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: Shahaf Shuler To: "zr@semihalf.com" , "dev@dpdk.org" Return-path: Received: from smtp-3.sys.kth.se (smtp-3.sys.kth.se [130.237.48.192]) by dpdk.org (Postfix) with ESMTP id 465DB3256 for ; Sat, 8 Dec 2018 13:07:45 +0100 (CET) In-Reply-To: <1544027600-9390-1-git-send-email-zr@semihalf.com> Content-Language: fr-FR List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Zyta,=0A= =0A= This was my initial proposal, but after discussion with Shahaf Shuler we th= ought this was too far from the original intent of the function.=0A= rte_eth_timesync_read_time is clearly identified as part of a set of functi= on to use PTP synchronization. =0A= This clock is not "sync" in any way. More importantly, the returned value i= s 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_re= ad_time would use it blindly.=0A= =0A= But as far as I'm concerned, I can go with one or the other in our use case= s...=0A= =0A= Thanks,=0A= Tom=0A= =0A= =0A= ________________________________________=0A= De : zr@semihalf.com =0A= Envoy=E9 : mercredi 5 d=E9cembre 2018 17:33=0A= =C0 : Tom Barbette; dev@dpdk.org=0A= Cc : Zyta Szpak=0A= Objet : Re: [RFC PATCH 0/3] Add rte_eth_read_clock API=0A= =0A= From: Zyta Szpak =0A= =0A= I'd ask few questions: how is this new rte_ethdev_read_clock different from= existing rte_eth_timesync_read_time ?=0A= Is it that this new function does not convert the clock raw value into time= spec? Would it be too much overhead to use the timespec type of value? Or d= o they intent to read different clocks?=0A=