[dpdk-dev] [PATCH v2 0/3] Add rte_eth_read_clock API

Tom Barbette barbette at kth.se
Wed Mar 27 17:08:04 CET 2019


On 2019-03-27 15:54, Wiles, Keith wrote:
> I know the API rte_eht_read_clock() is attempting to read the NIC for this timestamp, but if the PMD does not support this request can we just default to the rte_rdtsc() as a return value?
I would not advise that, because the goal of the function is to have 
something that is from the same unit than the hardware timestamp given 
in the mbufs.

 > The current timestamp API is a mess because not all devices behave the
 > same way. Trying to write an application that uses timestamping is
 > therefore
 > very difficult.

This is different than timesync, no other devices implement hardware 
timestamping. For me, it's a different feature.

Cheers,
Tom



More information about the dev mailing list