Re: [dpdk-dev] [PATCH 1/2] net/pcap: support software Tx nanosecond timestamp

2020-06-04 Thread Ferruh Yigit
On 6/4/2020 11:52 AM, Ferruh Yigit wrote: > On 6/3/2020 9:26 PM, Vivien Didelot wrote: >> On Wed, 3 Jun 2020 13:11:39 -0700, Stephen Hemminger >> wrote: >>> On Wed, 3 Jun 2020 18:50:51 +0100 >>> Ferruh Yigit wrote: >>> On 5/23/2020 6:21 PM, Vivien Didelot wrote: > When capturing packets

Re: [dpdk-dev] [PATCH 1/2] net/pcap: support software Tx nanosecond timestamp

2020-06-04 Thread Ferruh Yigit
On 6/3/2020 9:11 PM, Stephen Hemminger wrote: > On Wed, 3 Jun 2020 18:50:51 +0100 > Ferruh Yigit wrote: > >> On 5/23/2020 6:21 PM, Vivien Didelot wrote: >>> When capturing packets into a PCAP file, DPDK currently uses >>> microseconds for the timestamp. But libpcap supports interpreting >>> tv_us

Re: [dpdk-dev] [PATCH 1/2] net/pcap: support software Tx nanosecond timestamp

2020-06-04 Thread Ferruh Yigit
On 6/3/2020 9:26 PM, Vivien Didelot wrote: > On Wed, 3 Jun 2020 13:11:39 -0700, Stephen Hemminger > wrote: >> On Wed, 3 Jun 2020 18:50:51 +0100 >> Ferruh Yigit wrote: >> >>> On 5/23/2020 6:21 PM, Vivien Didelot wrote: When capturing packets into a PCAP file, DPDK currently uses microse

Re: [dpdk-dev] [PATCH 1/2] net/pcap: support software Tx nanosecond timestamp

2020-06-03 Thread Stephen Hemminger
On Wed, 3 Jun 2020 16:26:52 -0400 Vivien Didelot wrote: > On Wed, 3 Jun 2020 13:11:39 -0700, Stephen Hemminger > wrote: > > On Wed, 3 Jun 2020 18:50:51 +0100 > > Ferruh Yigit wrote: > > > > > On 5/23/2020 6:21 PM, Vivien Didelot wrote: > > > > When capturing packets into a PCAP file, DPDK

Re: [dpdk-dev] [PATCH 1/2] net/pcap: support software Tx nanosecond timestamp

2020-06-03 Thread Stephen Hemminger
On Wed, 3 Jun 2020 18:50:51 +0100 Ferruh Yigit wrote: > On 5/23/2020 6:21 PM, Vivien Didelot wrote: > > When capturing packets into a PCAP file, DPDK currently uses > > microseconds for the timestamp. But libpcap supports interpreting > > tv_usec as nanoseconds depending on the file timestamp pre

Re: [dpdk-dev] [PATCH 1/2] net/pcap: support software Tx nanosecond timestamp

2020-06-03 Thread Ferruh Yigit
On 5/23/2020 6:21 PM, Vivien Didelot wrote: > When capturing packets into a PCAP file, DPDK currently uses > microseconds for the timestamp. But libpcap supports interpreting > tv_usec as nanoseconds depending on the file timestamp precision. > > To support this, use PCAP_TSTAMP_PRECISION_NANO whe

Re: [dpdk-dev] [PATCH 1/2] net/pcap: support software Tx nanosecond timestamp

2020-05-23 Thread Stephen Hemminger
On Sat, 23 May 2020 13:21:29 -0400 Vivien Didelot wrote: > When capturing packets into a PCAP file, DPDK currently uses > microseconds for the timestamp. But libpcap supports interpreting > tv_usec as nanoseconds depending on the file timestamp precision. > > To support this, use PCAP_TSTAMP_PRE

[dpdk-dev] [PATCH 1/2] net/pcap: support software Tx nanosecond timestamp

2020-05-23 Thread Vivien Didelot
When capturing packets into a PCAP file, DPDK currently uses microseconds for the timestamp. But libpcap supports interpreting tv_usec as nanoseconds depending on the file timestamp precision. To support this, use PCAP_TSTAMP_PRECISION_NANO when creating the empty PCAP file as specified by PCAP_OP