Non-sched modes were missing update of output event queue
handle in the case of multiple pktios per thread.

Signed-off-by: Petri Savolainen <petri.savolai...@nokia.com>
---
 test/common_plat/performance/odp_l2fwd.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/common_plat/performance/odp_l2fwd.c 
b/test/common_plat/performance/odp_l2fwd.c
index 90e3b88..651ed10 100644
--- a/test/common_plat/performance/odp_l2fwd.c
+++ b/test/common_plat/performance/odp_l2fwd.c
@@ -425,6 +425,9 @@ static int run_worker_plain_queue_mode(void *arg)
                        dst_idx   = thr_args->pktio[pktio].tx_idx;
                        queue     = thr_args->pktio[pktio].rx_queue;
                        pktout    = thr_args->pktio[pktio].pktout;
+                       if (odp_unlikely(use_event_queue))
+                               tx_queue = thr_args->pktio[pktio].tx_queue;
+
                        pktio++;
                        if (pktio == num_pktio)
                                pktio = 0;
@@ -522,6 +525,9 @@ static int run_worker_direct_mode(void *arg)
                        dst_idx   = thr_args->pktio[pktio].tx_idx;
                        pktin     = thr_args->pktio[pktio].pktin;
                        pktout    = thr_args->pktio[pktio].pktout;
+                       if (odp_unlikely(use_event_queue))
+                               tx_queue = thr_args->pktio[pktio].tx_queue;
+
                        pktio++;
                        if (pktio == num_pktio)
                                pktio = 0;
-- 
2.8.1

Reply via email to