Intel XL710 supports HW timestamping, however, it would work only on PTP packets and not on normal packets.
Few things I would suggest : 1) Check if you enabled "CONFIG_RTE_LIBRTE_IEEE1588=y" in your config/common_base when building dpdk. 2) Checkout https://github.com/praveingk/DPTP/tree/master/dptpclient/src/dptpclient.c on how to enable the timesync. 3) Craft the packets using similar header as https://github.com/praveingk/DPTP/blob/master/dptpclient/src/dptp.h I had used the same NIC, and it should work. Thanks, Pravein On Wed, Mar 3, 2021 at 4:07 PM Filip Janiszewski < cont...@filipjaniszewski.com> wrote: > Hi, > > Is there a way to enable HW timestamps with this Intel card using DPDK > by means of the IEEE1588 set of function API? (Dpdk 20.08). > > In my understanding the nic should support hardware time-stamping of RX > packets if: "A separate PTP application would be required that > communicates directly with the controller on the XL710" cit from > > https://community.intel.com/t5/Ethernet-Products/Does-intel-XL710-QDA2-support-HW-timestamping/m-p/563064 > > Is there a way to make this work in DPDK? I'm honestly not sure what > does it mean exactly "communicates directly with the controller", but I > assume it has something to do with rte_eth_timesync_* ? > > I've actually tried already a test, I've executed > rte_eth_timesync_enable/rte_eth_timesync_write_time and then verified > with rte_eth_timesync_read_rx_timestamp if the timestamp is stored, and > it seems it's there - but the packets are all coming with 0 in the > timestamp field (mbuf).. > > Thanks > > -- > BR, Filip > +48 666 369 823 >