DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Intel XL710, timestamping
@ 2021-03-03 10:36 Filip Janiszewski
  2021-03-03 11:23 ` Pravein GK
  0 siblings, 1 reply; 2+ messages in thread
From: Filip Janiszewski @ 2021-03-03 10:36 UTC (permalink / raw)
  To: users

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] Intel XL710, timestamping
  2021-03-03 10:36 [dpdk-users] Intel XL710, timestamping Filip Janiszewski
@ 2021-03-03 11:23 ` Pravein GK
  0 siblings, 0 replies; 2+ messages in thread
From: Pravein GK @ 2021-03-03 11:23 UTC (permalink / raw)
  To: Filip Janiszewski; +Cc: users

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 <
contact@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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-03 11:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 10:36 [dpdk-users] Intel XL710, timestamping Filip Janiszewski
2021-03-03 11:23 ` Pravein GK

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).