numam-dpdk/drivers
Vivien Didelot a7d42145cc net/pcap: support Tx nanosecond timestamps
When capturing packets into a PCAP file, DPDK currently uses
microseconds for the timestamps. But libpcap supports interpreting
tv_usec as nanoseconds depending on the file timestamp precision,
as of commit ba89e4a18e8b ("Make timestamps precision configurable").

To support this, use PCAP_TSTAMP_PRECISION_NANO when creating the
empty PCAP file as specified by PCAP_OPEN_DEAD(3PCAP) and implement
nanosecond timeval addition. This also ensures that the precision
reported by capinfos is nanoseconds (9).

Note that NSEC_PER_SEC is defined as 1000000000L instead of 1e9 since
the latter might be interpreted as floating point.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
2020-06-16 19:21:07 +02:00
..
baseband baseband/fpga_5gnr_fec: support interrupt 2020-04-19 22:34:26 +02:00
bus bus/fslmc: drop inline from non-static functions 2020-05-20 15:15:48 +02:00
common common/mlx5: remove protection domain dependency on Verbs 2020-06-16 19:21:07 +02:00
compress fix various typos found by Lintian 2020-04-25 19:53:47 +02:00
crypto bus/fslmc: add accessor for MCP 2020-05-19 15:49:53 +02:00
event mempool/octeontx2: add devargs to lock context in cache 2020-05-19 18:28:58 +02:00
mempool mempool/octeontx2: add devargs to lock context in cache 2020-05-19 18:28:58 +02:00
net net/pcap: support Tx nanosecond timestamps 2020-06-16 19:21:07 +02:00
raw bus/fslmc: add accessor for MCP 2020-05-19 15:49:53 +02:00
vdpa common/mlx5: move glue files under Linux directory 2020-06-03 17:19:26 +02:00
Makefile drivers: add crypto as dependency for event drivers 2020-03-05 14:22:11 +01:00
meson.build build: skip config of explicitly disabled drivers 2020-05-19 16:52:22 +02:00