> -----Original Message----- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Montorsi, Francesco > Sent: Monday, October 12, 2015 9:26 AM > To: Lu, Wenzhuo; dev at dpdk.org > Subject: Re: [dpdk-dev] Accurate timestamps in received packets > > Hi Wenzhuo, > > > -----Original Message----- > > From: Lu, Wenzhuo [mailto:wenzhuo.lu at intel.com] > > > > Why not > > searching ieee1588 in the dpdk git repository? Surely you'll find > > something. > > I tried using IEEE 1588 without success. In particular I enabled it at > build-time of DPDK and then after calling rte_eth_rx_burst() I tried > calling rte_eth_timesync_read_tx_timestamp() to get a timestamp from the > port_id used to receive a burst of packets, but the function always > returns with an error. > Moreover, even if the function succeeded I need a timestamp for every > incoming packet, not a single timestamp for the whole burst of received > packets... do you know how I could achieve that?
Hi, IEEE1588 isn't suitable for this. It is a timesync protocol rather than a timestamping function. AFAIK, timestamping of every packet isn't supported by ixgbe/i40e nics and I don't know about non-Intel nics. It was supported for some(?) igb nics and hence the patch you linked to. Also, there isn't any DPDK API to enable/disable it even if it is supported by the nic. John