numam-dpdk/app/test-eventdev
Feifei Wang c7c033d173 app/eventdev: fix SMP barrier in performance test
This patch fixes RTE SMP barrier bugs for the perf test of eventdev.

For the "perf_process_last_stage" function, wmb after storing
processed_pkts should be moved before it. This is because the worker
lcore should ensure it has really finished data processing, e.g. event
stored into buffers, before the shared variables "w->processed_pkts"are
stored.

For the "perf_process_last_stage_latency", on the one hand, the wmb
should be moved before storing into "w->processed_pkts". The reason is
the same as above. But on the other hand, for "w->latency", wmb is
unnecessary due to data dependency.

Fixes: 2369f73329 ("app/testeventdev: add perf queue worker functions")
Cc: stable@dpdk.org

Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
2021-01-26 14:39:08 +01:00
..
evt_common.h eventdev: express DLB/DLB2 PMD constraints 2020-10-15 23:16:07 +02:00
evt_main.c app/eventdev: use proper teardown sequence 2018-07-25 14:29:55 +02:00
evt_options.c app/eventdev: check timer adadpters number 2020-11-13 09:52:11 +01:00
evt_options.h app/eventdev: validate producer type 2020-04-04 17:11:23 +02:00
evt_test.c app: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
evt_test.h remove useless constructor headers 2018-07-12 00:00:35 +02:00
meson.build app/eventdev: fix pipeline test with meson build 2020-02-15 08:50:35 +01:00
parser.c app/eventdev: replace license text with SPDX tag 2019-07-29 13:31:45 +02:00
parser.h app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
test_order_atq.c app/eventdev: switch flow ID to dynamic mbuf field 2020-10-31 16:13:11 +01:00
test_order_common.c app/eventdev: switch sequence number to dynamic mbuf field 2020-10-31 22:14:43 +01:00
test_order_common.h app/eventdev: switch sequence number to dynamic mbuf field 2020-10-31 22:14:43 +01:00
test_order_queue.c app/eventdev: switch flow ID to dynamic mbuf field 2020-10-31 16:13:11 +01:00
test_perf_atq.c replace always-inline attributes 2020-04-16 18:16:46 +02:00
test_perf_common.c eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
test_perf_common.h app/eventdev: fix SMP barrier in performance test 2021-01-26 14:39:08 +01:00
test_perf_queue.c replace always-inline attributes 2020-04-16 18:16:46 +02:00
test_pipeline_atq.c app/eventdev: fix capability check in pipeline ATQ test 2020-07-24 07:22:41 +02:00
test_pipeline_common.c eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
test_pipeline_common.h eventdev: add Tx flag for packets with same destination 2019-10-18 10:03:08 +02:00
test_pipeline_queue.c app/eventdev: remove redundant enqueue in burst Tx 2021-01-26 12:00:29 +01:00