app/eventdev: fix capability check in pipeline ATQ test
authorApeksha Gupta <apeksha.gupta@nxp.com>
Thu, 23 Jul 2020 17:02:32 +0000 (22:32 +0530)
committerJerin Jacob <jerinj@marvell.com>
Fri, 24 Jul 2020 05:22:41 +0000 (07:22 +0200)
Add all type queue capability check before configuring event device
for pipeline atq test.

Fixes: 6bf570a9911 ("app/eventdev: add pipeline atq test")
Cc: stable@dpdk.org
Signed-off-by: Apeksha Gupta <apeksha.gupta@nxp.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
app/test-eventdev/test_pipeline_atq.c

index 8e8686c..0872b25 100644 (file)
@@ -495,6 +495,8 @@ pipeline_atq_capability_check(struct evt_options *opt)
                        evt_nr_active_lcores(opt->wlcores),
                        dev_info.max_event_ports);
        }
+       if (!evt_has_all_types_queue(opt->dev_id))
+               return false;
 
        return true;
 }