[dpdk-dev] [PATCH v4 1/3] rte_ethdev: Add API function to read dev clock

Andrew Rybchenko arybchenko at solarflare.com
Wed May 8 09:54:17 CEST 2019

On 5/2/19 3:11 PM, Tom Barbette wrote:
> Add rte_eth_read_clock to read the raw clock of a device.
> The main use is to get the device clock conversion co-efficients to be
> able to translate the raw clock of the timestamp field of the pkt mbuf
> to a local synced time value.
> This function was missing to allow users to convert the Rx timestamp field
> to real time without the complexity of the rte_timesync* facility. One can
> derivate the clock frequency by calling twice read_clock and then keep a
> common time base.
> Signed-off-by: Tom Barbette <barbette at kth.se>

Acked-by: Andrew Rybchenko <arybchenko at solarflare.com>

More information about the dev mailing list