Go to file
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
.ci ci: reduce examples in static builds 2020-04-17 23:34:08 +02:00
app app/testpmd: fix error detection in MTU command 2020-06-16 19:21:07 +02:00
buildtools compat: provide experimental alias for matured ABI 2020-05-18 19:46:25 +02:00
config eal/windows: implement basic memory management 2020-06-15 19:30:54 +02:00
devtools doc: prefer https when pointing to dpdk.org 2020-05-24 23:42:36 +02:00
doc net/pcap: support Tx nanosecond timestamps 2020-06-16 19:21:07 +02:00
drivers net/pcap: support Tx nanosecond timestamps 2020-06-16 19:21:07 +02:00
examples examples/ip_pipeline: remove check of null response 2020-05-24 18:24:28 +02:00
kernel kernel/linux: error out on module build failure 2020-05-19 17:59:57 +02:00
lib cfgfile: check flags on creation for future proofing 2020-06-16 17:46:39 +02:00
license eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
mk mk: add note about make system deprecation 2020-05-19 18:04:19 +02:00
usertools usertools: read PCI device name as UTF-8 2020-05-24 19:09:13 +02:00
.editorconfig devtools: add EditorConfig file 2020-02-22 21:05:22 +01:00
.gitattributes
.gitignore doc: add feature matrix table for bbdev 2020-04-19 22:34:26 +02:00
.travis.yml version: 20.08-rc0 2020-05-27 11:37:33 +02:00
ABI_VERSION version: 20.08-rc0 2020-05-27 11:37:33 +02:00
GNUmakefile test: move to app directory 2019-02-26 15:29:27 +01:00
MAINTAINERS test/bitops: add bit operations test case 2020-06-16 14:34:39 +02:00
Makefile remove blank lines at end of file 2019-11-26 00:12:08 +01:00
meson_options.txt trace: introduce new subsystem 2020-04-23 15:39:06 +02:00
meson.build build: add arch-specific header path to global includes 2020-05-10 23:45:02 +02:00
README
VERSION version: 20.08-rc0 2020-05-27 11:37:33 +02:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org