On 18.03.16 10:50, Savolainen, Petri (Nokia - FI/Espoo) wrote:
Hi,

Not yet, but going to do that soon. Do you need also an API for reading 
(sampling) the packet input HW timestamp from the interface?

For example, rte_eth_timesync_read_rx_timestamp does that. I was going to add 
(first) only ability to the read timestamp stored in the received packet,
 timestamp frequency and a configuration option to enable/disable timestamping 
per interface (during pktio open).
 We have odp_time_ and odp_cpu_cycle APIs to read wall clock time and CPU cycle 
counters. More adcanced packet input clock (or IEEE 1588 clock) features could 
added later on.
Yep, but odp_time API covers different h/w counter then timestamps of incoming 
packets.
Not sure if enabale/disable API is needed. The packet timestamps don't consume 
CPU time
in normal circumstances and they are present or not. If h/w doesn't support 
timestamping
then it can be emulated with odp_time_*, but it's rather an exception then rule.
It should be warned that packet time stamp is not comparable with time API 
types.
And one though, maybe it can be used with time API as a different time 
type....dislike
it, as time API can consume more cycles after that, but it's possible.


-Petri

*From:*EXT Dominic Pigott [mailto:d...@intelligentcompute.com]
*Sent:* Thursday, March 17, 2016 4:39 PM
*To:* Savolainen, Petri (Nokia - FI/Espoo) <petri.savolai...@nokia.com>
*Cc:* lng-odp <lng-odp@lists.linaro.org>
*Subject:* Re: Accesing hardware time stamps

Hi Petri

Thanks for the answer, did you have any time to look at this further? Most 
modern NICs can generate the timestamps in hardware so the overhead should be 
low, but its vendor specific. DPDK implements a standard API in  2.1 I believe:

http://dpdk.org/doc/guides/rel_notes/release_2_1.html?highlight=timestamp

Regards

Dom

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

*From: *"Savolainen, Petri (Nokia - FI/Espoo)" <petri.savolai...@nokia.com 
<mailto:petri.savolai...@nokia.com>>
*To: *"EXT Dominic Pigott" <d...@intelligentcompute.com <mailto:d...@intelligentcompute.com>>, 
"lng-odp" <lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>>
*Sent: *Friday, 11 March, 2016 05:13:52
*Subject: *RE: Accesing hardware time stamps

Hi,

There’s not yet packet time stamping, but I’m thinking to add a 64 bit time 
stamp into packet metadata and have a packet input configuration option to 
enable/disable timestamping, since it may take lots of CPU cycles to timestamp 
every packet (also when application would not need it).

I’ll look into it more detail at next week.

-Petri

*From:*lng-odp [mailto:lng-odp-boun...@lists.linaro.org] *On Behalf Of *EXT 
Dominic Pigott
*Sent:* Thursday, March 10, 2016 1:08 PM
*To:* lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
*Subject:* [lng-odp] Accesing hardware time stamps

Hi,

I cannot find in the documentation, but is it possible to access a packets 
hardware time stamp via the ODP API?

Regards

Dom



_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp


--
Regards,
Ivan Khoronzhuk
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to