From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2A69EA0487 for ; Sun, 30 Jun 2019 19:53:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0DD091B99D; Sun, 30 Jun 2019 19:52:56 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 8A9F91B996; Sun, 30 Jun 2019 19:52:52 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5UHoeHE016509; Sun, 30 Jun 2019 10:52:51 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=SO0y7cyXaTE+Je6w9yf5tc4EGmscf31DfYlBtw5lw+o=; b=Wb8vuBOXOpOsVhI6md+Hr2oQXqHf/sdSXDqeF0MRrsnnUd2aK5XcTo67BVzD4R81QREQ zjGMiARtOp6QIY7kMoQs+NONtZc4hsMd6nPjOPD4FsnjigPrvAqCmtL7rBHHCNJSte+Q z/E8WMhA/XmZCFqsBfOMZ81u9nCgliqLPEJbj4mzoiMCEHfJxK8lw+1A2XDqVeoXeVs+ eseGxGyx8IiqFq0iaoxZbrOalr3NXZEeXkZEBu6QjwzcX5gyeZw39tFH0bYrZ+CyKA+X IBZ5L0KmouZtXoPsFnMpU6fztmATiU1N1/7KZw4SRzYVZag9lzJAmwEauBrGUjZBKLZk 4g== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2te5bn4f5p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 30 Jun 2019 10:52:51 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 30 Jun 2019 10:52:50 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Sun, 30 Jun 2019 10:52:50 -0700 Received: from BG-LT7430.marvell.com (unknown [10.28.17.14]) by maili.marvell.com (Postfix) with ESMTP id 68FA23F703F; Sun, 30 Jun 2019 10:52:48 -0700 (PDT) From: To: CC: , Pavan Nikhilesh , Date: Sun, 30 Jun 2019 23:22:40 +0530 Message-ID: <20190630175240.1126-2-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190630175240.1126-1-pbhagavatula@marvell.com> References: <20190630175240.1126-1-pbhagavatula@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-30_08:, , signatures=0 Subject: [dpdk-dev] [PATCH 2/2] test/eventdev: fix producer core validity checks X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh 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. Cc: stable@dpdk.org Fixes: b01974da9f25 ("app/eventdev: add ethernet device producer option") Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/test_perf_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c index 01f782820..2e9e83e88 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())) { -- 2.21.0