odp-dpdk icon indicating copy to clipboard operation
odp-dpdk copied to clipboard

Rx Hardware Packet Timestamps from DPDK

Open Carisbrooke opened this issue 3 years ago • 3 comments

Hi,

The DPDK DPAA2 driver and DPDK 20.11 appear to support the hardware timestamping of RX packets. Can this time information be accessed by odp-dpdk? (finding the ODP time API a little confusing on the subject)

Thanks, Dom

Carisbrooke avatar May 07 '21 09:05 Carisbrooke

Hi,

The current ODP-DPDK implementation only supports software timestamping. If I understand the current DPDK API correctly, HW timestamping can only be enabled for PTP packets (IEEE1588/802.1AS). Would you need timestamps for all packets or only for PTP usage?

MatiasElo avatar May 07 '21 12:05 MatiasElo

Thanks for replying, we're interested in every RX packet being timestamped, I know it used to be limited to 1588 packets but thought mbuf.timestamp had been extended so every packet could be timestamped (in hardware, if supported) and from 20.11 using the dynamic mbuf RTE_MBUF_DYNFIELD_TIMESTAMP_NAME ( )

https://www.mail-archive.com/[email protected]/msg190452.html http://doc.dpdk.org/guides-20.11/rel_notes/release_20_11.html

an example

https://git.quacker.org/d/numam-dpdk/commit/7a0c64910ca73d28b320354ef385853b428347f9

However struggling to find clear documentation on the subject.

Carisbrooke avatar May 07 '21 13:05 Carisbrooke

Thanks for the info. There really isn't much documentation to go with but it seems like these new APIs could be useful, although they are still experimental.

MatiasElo avatar May 14 '21 10:05 MatiasElo