rte_eth_timesync_read_tx_timestamp on Intel 82599ES NIC

Fengkai Sun qcloud1014 at gmail.com
Wed Dec 7 04:50:09 CET 2022


Hello list,

I read that 82599ES family does support hardware timestamping, but when I
tried to read from it, it returned -EINVAL. Below is my code:

```
// port initialization excised
    struct timespec tmp;
    ret = rte_eth_timesync_enable(0);
    printf("Enable tx timestamp: status %d\n", ret);
    ret = rte_eth_timesync_read_tx_timestamp(0, &tmp);
    printf("Get tx timestamp: status %d\n", ret);
```

And the output is:

```
Enable tx timestamp: status 0
Get tx timestamp: status -22
```

Why does it happen? I looked into `examples/ptpclient/ptpclient.c` and
found that no other requirement is needed to read the hardware timestamp.


FYI, I'm using Ubuntu 20.04, DPDK 21.05, and below is what devbind returns:

```
Network devices using DPDK-compatible driver
============================================
0000:04:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb'
drv=uio_pci_generic unused=ixgbe,vfio-pci
0000:04:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb'
drv=uio_pci_generic unused=ixgbe,vfio-pci
```

Thank you in advance!

--
Best Regards,
Fengkai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20221207/1009302a/attachment-0001.htm>


More information about the users mailing list