Hello, I'm trying to capture rx/tx timestamp using *rte_eth_timesync_rx/tx_read()* functions but it always returns EINVAL. Does the* 82599ES* NIC(with *igb_uio*) support the timesync function to capture Tx/Rx timestamp? My system and hardware info are below: linux-headers-5.4.0-72-generic/bionic-updates,bionic-security,now 5.4.0-72.80~18.04.1 amd64 DPDK-20.08 82599ES NIC bind with igb_uio Thanks, Lin
On Fri, Jun 11, 2021 at 10:34 AM Linyih Teng <tenglinyih@gmail.com> wrote:
>
> I'm trying to capture rx/tx timestamp using *rte_eth_timesync_rx/tx_read()*
> functions but it always returns EINVAL. Does the* 82599ES* NIC(with
> *igb_uio*) support the timesync function to capture Tx/Rx timestamp?
Did you call rte_eth_timesync_enable() and pass a valid timespec ?
I would take testpmd as a reference and check it works with
RTE_LIBRTE_IEEE1588 enabled.
Cc: ixgbe maintainer.
--
David Marchand
> -----Original Message----- > From: David Marchand <david.marchand@redhat.com> > Sent: Friday, June 11, 2021 16:50 > To: Linyih Teng <tenglinyih@gmail.com> > Cc: users <users@dpdk.org>; Wang, Haiyue <haiyue.wang@intel.com> > Subject: Re: [dpdk-users] 82599ES 10-Gigabit NIC can't use timesync? > > On Fri, Jun 11, 2021 at 10:34 AM Linyih Teng <tenglinyih@gmail.com> wrote: > > > > I'm trying to capture rx/tx timestamp using *rte_eth_timesync_rx/tx_read()* > > functions but it always returns EINVAL. Does the* 82599ES* NIC(with > > *igb_uio*) support the timesync function to capture Tx/Rx timestamp? > > Did you call rte_eth_timesync_enable() and pass a valid timespec ? > > I would take testpmd as a reference and check it works with > RTE_LIBRTE_IEEE1588 enabled. > Cc: ixgbe maintainer. > Quick start: http://git.dpdk.org/tools/dts/tree/test_plans/ptpclient_test_plan.rst > > -- > David Marchand