c7c033d173
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:
|
||
---|---|---|
.. | ||
evt_common.h | ||
evt_main.c | ||
evt_options.c | ||
evt_options.h | ||
evt_test.c | ||
evt_test.h | ||
meson.build | ||
parser.c | ||
parser.h | ||
test_order_atq.c | ||
test_order_common.c | ||
test_order_common.h | ||
test_order_queue.c | ||
test_perf_atq.c | ||
test_perf_common.c | ||
test_perf_common.h | ||
test_perf_queue.c | ||
test_pipeline_atq.c | ||
test_pipeline_common.c | ||
test_pipeline_common.h | ||
test_pipeline_queue.c |