From: Pavan Nikhilesh <pbhagavat...@marvell.com>

In OP_FWD mode, if internal port is supported, the target event queue
should be the TEST_APP_EV_QUEUE_ID.

Fixes: a276e7c8fbb3 ("test/event: add DMA adapter auto-test")

Signed-off-by: Pavan Nikhilesh <pbhagavat...@marvell.com>
---
 app/test/test_event_dma_adapter.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app/test/test_event_dma_adapter.c 
b/app/test/test_event_dma_adapter.c
index 3b39521153bb..9988d4fc7bc5 100644
--- a/app/test/test_event_dma_adapter.c
+++ b/app/test/test_event_dma_adapter.c
@@ -271,7 +271,10 @@ test_op_forward_mode(void)
                ev[i].event = 0;
                ev[i].op = RTE_EVENT_OP_NEW;
                ev[i].event_type = RTE_EVENT_TYPE_DMADEV;
-               ev[i].queue_id = TEST_DMA_EV_QUEUE_ID;
+               if (params.internal_port_op_fwd)
+                       ev[i].queue_id = TEST_APP_EV_QUEUE_ID;
+               else
+                       ev[i].queue_id = TEST_DMA_EV_QUEUE_ID;
                ev[i].sched_type = RTE_SCHED_TYPE_ATOMIC;
                ev[i].flow_id = 0xAABB;
                ev[i].event_ptr = op;
-- 
2.45.2

Reply via email to