Go to file
Dan Gora 85fea26693 examples/kni: improve zeroing statistics
The worker threads incrementing the rx/tx_packets race with the signal
handler from the main thread zeroing the entire statistics structure.
This can cause the statistics to fail to be zeroed, even when there
is no traffic on those interfaces.

Improve zeroing the statistics by only incrementing rx/tx_packets
in worker threads by a non-zero amount.  This limits the race to the
periods in which traffic is actually being received or transmitted.

Signed-off-by: Dan Gora <dg@adax.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-10-26 19:46:29 +02:00
app mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
buildtools mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
config config: rename option for C11 memory model 2018-10-26 18:09:22 +02:00
devtools devtools: add git log checks for PHY 2018-10-25 16:52:43 +02:00
doc examples/kni: monitor and update link state continually 2018-10-26 19:46:23 +02:00
drivers use registered name for OCTEON TX references 2018-10-26 14:16:05 +02:00
examples examples/kni: improve zeroing statistics 2018-10-26 19:46:29 +02:00
kernel kni: set default carrier state of interface 2018-10-26 19:46:20 +02:00
lib kni: add function to set link state on kernel interface 2018-10-26 19:46:15 +02:00
license license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
mk mk: use EXTRA_CFLAGS for pmdinfogen 2018-10-25 00:02:00 +02:00
pkg version: 18.08.0 2018-08-09 23:11:26 +02:00
test kni: add function to set link state on kernel interface 2018-10-26 19:46:15 +02:00
usertools usertools: add octeontx zip device for binding 2018-07-25 13:36:26 +02:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore doc: add compression driver and ISA-L PMD guides 2018-05-10 17:46:20 +01:00
GNUmakefile move kernel modules directories 2018-03-21 23:04:21 +01:00
MAINTAINERS use registered name for OCTEON TX references 2018-10-26 14:16:05 +02:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt net/mlx5: support meson build 2018-09-28 01:41:01 +02:00
meson.build build: generate API documentation with meson 2018-09-18 15:50:54 +02:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01: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