app/eventdev: fix port dequeue depth configuration
[dpdk.git] / app / test-eventdev / test_pipeline_atq.c
index 36abbdd..dd71897 100644 (file)
@@ -378,6 +378,9 @@ pipeline_atq_eventdev_setup(struct evt_test *test, struct evt_options *opt)
                }
        }
 
+       if (opt->wkr_deq_dep > info.max_event_port_dequeue_depth)
+               opt->wkr_deq_dep = info.max_event_port_dequeue_depth;
+
        /* port configuration */
        const struct rte_event_port_conf p_conf = {
                        .dequeue_depth = opt->wkr_deq_dep,