Synchronizing Clock and Getting Hardware Timestamps in DPDK

张熙至 zhangxz18 at mails.tsinghua.edu.cn
Wed May 24 14:07:23 CEST 2023


Hello all,
I want to measure the transmit latency in the host for a dpdk packet, so I need the timestamp before send (t1) and the hardware timestamp after the NIC finish sending the packet (t2). But I have some questions:
(1) How can I synchronizes the system clock to the hardware clock in the NIC binded to dpdk driver (like phc2sys in normal NIC driver)?
(2) How can I get the hardware timestamp t2?
Thank you for your time and consideration.
Sincerely, Zhang Xizhi





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20230524/95802f1b/attachment.htm>


More information about the users mailing list