numam-dpdk/examples
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
..
bbdev_app ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
bond ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
cmdline mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
distributor examples: fix RSS hash function configuration 2018-07-05 15:46:48 +02:00
ethtool mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
eventdev_pipeline examples/eventdev_pipeline: support Tx adapter 2018-10-01 16:52:47 +02:00
exception_path ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
flow_classify ethdev: remove old offload API 2018-07-04 21:50:32 +02:00
flow_filtering net/i40e: config flow director automatically 2018-10-11 18:53:48 +02:00
helloworld build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
ip_fragmentation ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
ip_pipeline mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
ip_reassembly ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
ipsec-secgw examples/ipsec-secgw: fix wrong session size 2018-09-25 17:57:25 +02:00
ipv4_multicast ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
kni examples/kni: improve zeroing statistics 2018-10-26 19:46:29 +02:00
l2fwd ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
l2fwd-cat mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
l2fwd-crypto ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
l2fwd-jobstats ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
l2fwd-keepalive ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
l3fwd ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
l3fwd-acl ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
l3fwd-power examples/l3fwd-power: support traffic pattern aware control 2018-10-26 01:55:07 +02:00
l3fwd-vf ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
link_status_interrupt ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
load_balancer mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
multi_process examples/multi_process: add hotplug sample 2018-10-17 10:16:18 +02:00
netmap_compat ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
packet_ordering ethdev: remove old offload API 2018-07-04 21:50:32 +02:00
performance-thread mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
ptpclient ethdev: remove old offload API 2018-07-04 21:50:32 +02:00
qos_meter ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
qos_sched mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
quota_watermark ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
rxtx_callbacks ethdev: remove old offload API 2018-07-04 21:50:32 +02:00
server_node_efd examples: make Linux environment check consistent 2018-07-12 09:48:12 +02:00
service_cores service: remove experimental tags 2018-04-25 14:57:37 +02:00
skeleton ethdev: remove old offload API 2018-07-04 21:50:32 +02:00
tep_termination mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
timer build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
vdpa examples/vdpa: introduce a new sample for vDPA 2018-10-11 18:53:49 +02:00
vhost mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
vhost_crypto mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
vhost_scsi mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
vm_power_manager examples/power: support meson/ninja build 2018-10-26 10:51:37 +02:00
vmdq ethdev: remove old offload API 2018-07-04 21:50:32 +02:00
vmdq_dcb examples: fix RSS hash function configuration 2018-07-05 15:46:48 +02:00
Makefile examples/vdpa: introduce a new sample for vDPA 2018-10-11 18:53:49 +02:00
meson.build mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00