numam-dpdk/examples/l3fwd-power
Anatoly Burakov 317a1da8d6 examples/l3fwd-power: fix race on interrupt wakeup log
Currently, the interrupt status notification prevents log spam by
remembering whether previous interrupt wakeup was due to traffic or due
to timeout expiring. However, it is a single variable that can
potentially be accessed from multiple threads, so it is not thread-safe.

Fix it by having per-lcore interrupt status.

Fixes: f4d1e19c29 ("examples/l3fwd-power: add Rx interrupt timeout")
Cc: stable@dpdk.org

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
Tested-by: Xi Zhang <xix.zhang@intel.com>
2020-11-02 11:47:19 +01:00
..
main.c examples/l3fwd-power: fix race on interrupt wakeup log 2020-11-02 11:47:19 +01:00
main.h examples/l3fwd-power: add high/regular perf cores options 2018-07-12 19:19:07 +02:00
Makefile examples: remove legacy sections of makefiles 2020-09-07 16:53:41 +02:00
meson.build build: replace use of old build macros 2020-10-19 22:15:44 +02:00
perf_core.c examples/l3fwd-power: fix updating lcore parameters 2020-07-22 01:44:37 +02:00
perf_core.h examples/l3fwd-power: add high/regular perf cores options 2018-07-12 19:19:07 +02:00