From: Pavan Nikhilesh Date: Sun, 30 Jun 2019 17:52:40 +0000 (+0530) Subject: test/eventdev: fix producer core validity checks X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=902387ea4ed1e10330bf74dcad5b715ed5118efd;p=dpdk.git test/eventdev: fix producer core validity checks When producer type is event timer adapter producer lcore checks are skipped. Since, timer adapter relies on SW to arm timers producer lcore is essential for its functionality. Verify producer lcore validity when producer type is event timer adapter. Fixes: b01974da9f25 ("app/eventdev: add ethernet device producer option") Cc: stable@dpdk.org Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c index 01f7828209..2e9e83e88d 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -562,7 +562,8 @@ perf_opt_check(struct evt_options *opt, uint64_t nb_queues) return -1; } - if (opt->prod_type == EVT_PROD_TYPE_SYNT) { + if (opt->prod_type == EVT_PROD_TYPE_SYNT || + opt->prod_type == EVT_PROD_TYPE_EVENT_TIMER_ADPTR) { /* Validate producer lcores */ if (evt_lcores_has_overlap(opt->plcores, rte_get_master_lcore())) {