Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-06-05 Thread Slava Ovsiienko
> -Original Message- > From: PATRICK KEROULAS > Sent: Friday, June 5, 2020 3:10 > To: Slava Ovsiienko > Cc: dev@dpdk.org; Vivien Didelot ; Shahaf > Shuler ; Raslan Darawsheh > ; Matan Azrad > Subject: Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to >

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-06-04 Thread PATRICK KEROULAS
On Wed, Jun 3, 2020 at 3:48 AM Slava Ovsiienko wrote: > > > From: PATRICK KEROULAS > > * rdma-code, libibverbs-dev: 28.0 > > * NIC Part Number: MCX516A-CDA_Ax > > * ConnectX-5 Ex EN > > * FW: 16.25.1020 > > It looks like outdated firmware, please: > - update the firmware - at least 16.27.200

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-06-03 Thread Slava Ovsiienko
> -Original Message- > From: PATRICK KEROULAS > Sent: Tuesday, June 2, 2020 22:18 > To: Slava Ovsiienko > Cc: dev@dpdk.org; Vivien Didelot ; Shahaf > Shuler ; Raslan Darawsheh > ; Matan Azrad > Subject: Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-06-02 Thread PATRICK KEROULAS
On Tue, May 26, 2020 at 12:00 PM Slava Ovsiienko wrote: > ConnectX HW timestamp is the captured value of internal 64-bit counter > running at the frequency, > reported in the device_frequency_khz field of struct > mlx5_ifc_cmd_hca_cap_bits{}. > This structure is queried in mlx5_devx_cmd_query_hc

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-05-31 Thread Slava Ovsiienko
Hi, Patrick Please, see below. >From: PATRICK KEROULAS >Sent: Friday, May 29, 2020 23:56 >To: Slava Ovsiienko >Cc: dev@dpdk.org; Vivien Didelot ; Shahaf Shuler >; Raslan Darawsheh ; Matan Azrad >> >Subject: Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-05-29 Thread PATRICK KEROULAS
On Tue, May 26, 2020 at 12:00 PM Slava Ovsiienko wrote: >> Hi, Patrick > > ConnectX HW timestamp is the captured value of internal 64-bit counter running at the frequency, > reported in the device_frequency_khz field of struct mlx5_ifc_cmd_hca_cap_bits{}. > This structure is queried in mlx5_devx_c

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-05-29 Thread N. Benes
Hi everyone, Tom Barbette: > > Le 22/05/2020 à 20:43, PATRICK KEROULAS a écrit : >> mlx5 part of libibverbs includes a ts-to-ns converter which takes the >> instantaneous clock info. It's unused in dpdk so far. I've tested >> it in the >> device/port init routine and the result lo

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-05-26 Thread Slava Ovsiienko
eh > ; Matan Azrad > Subject: Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to > nanoseconds > > > > > > mlx5 part of libibverbs includes a ts-to-ns converter which > > > > > takes the instantaneous clock info. It's unused in dpdk so far. &g

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-05-26 Thread Tom Barbette
Le 22/05/2020 à 20:43, PATRICK KEROULAS a écrit : mlx5 part of libibverbs includes a ts-to-ns converter which takes the instantaneous clock info. It's unused in dpdk so far. I've tested it in the device/port init routine and the result looks reliable. Since this approach looks very simple, comp

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-05-22 Thread PATRICK KEROULAS
> > > > mlx5 part of libibverbs includes a ts-to-ns converter which takes the > > > > instantaneous clock info. It's unused in dpdk so far. I've tested it in > > > > the > > > > device/port init routine and the result looks reliable. Since this > > > > approach > > > > looks very simple, compared

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-05-21 Thread Thomas Monjalon
21/05/2020 21:57, PATRICK KEROULAS: > > > I'm trying to build an accurate capture device based on Mellanox > > > Connect-X5 with following requirements: > > > - capture every incoming packets with hardware timestamps > > > - output: pcap with timestamps in nanoseconds > > > My problem is that the p

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-05-21 Thread PATRICK KEROULAS
> > I'm trying to build an accurate capture device based on Mellanox > > Connect-X5 with following requirements: > > - capture every incoming packets with hardware timestamps > > - output: pcap with timestamps in nanoseconds > > My problem is that the packets forwarded to `dpdk-pdump` carry raw > >

Re: [dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-05-21 Thread Thomas Monjalon
19/05/2020 20:20, PATRICK KEROULAS: > Hello, > > I'm trying to build an accurate capture device based on Mellanox > Connect-X5 with following requirements: > - capture every incoming packets with hardware timestamps > - output: pcap with timestamps in nanoseconds > My problem is that the packets f