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

2019-04-24 Thread Tom Barbette
Add rte_eth_read_clock to read the raw clock of a devide. 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 timestam

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

2019-04-25 Thread Andrew Rybchenko
On 4/24/19 8:34 PM, Tom Barbette wrote: Add rte_eth_read_clock to read the raw clock of a devide. Typo above "devide" 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. Th

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

2019-04-25 Thread Wiles, Keith
> On Apr 24, 2019, at 12:34 PM, Tom Barbette wrote: > > Add rte_eth_read_clock to read the raw clock of a devide. > > 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.

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

2019-04-26 Thread Tom Barbette
@Andrew I applied your comments. Thanks. On 2019-04-25 20:28, Wiles, Keith wrote: What is a raw clock value? It took me a bit to find that it is in nano-seconds need to document that point. It is not in nanosecond, it has no units. Finding the relation between the device clock and the real t