app/eventdev: adjust event count order for pipeline test
authorFeifei Wang <feifei.wang2@arm.com>
Fri, 22 Jan 2021 05:19:15 +0000 (13:19 +0800)
committerJerin Jacob <jerinj@marvell.com>
Tue, 26 Jan 2021 11:00:17 +0000 (12:00 +0100)
commite0c0573783455288dbe2fd70c24acd1cd66d6cb6
tree235f3bfd8f510e26cf7b002ddd1b7f47edcc5db4
parentfd7a6adf8af368153ef17df110e4bf995e3b3e8a
app/eventdev: adjust event count order for pipeline test

For the fwd mode (internal_port = false) in pipeline test,
processed-pkts increment should after enqueue. However, in
multi_stage_fwd and multi_stage_burst_fwd, "w->processed_pkts" is
increased before enqueue.

To fix this, move "w->processed_pkts" increment after enqueue, and then
the main core can load the correct number of processed packets.

Fixes: 314bcf58ca8f ("app/eventdev: add pipeline 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: Jerin Jacob <jerinj@marvell.com>
app/test-eventdev/test_pipeline_queue.c