From patchwork Mon Jul 13 11:44:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Apeksha Gupta X-Patchwork-Id: 73919 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 91C7DA0540; Mon, 13 Jul 2020 13:44:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BBCE61D64A; Mon, 13 Jul 2020 13:44:18 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 31A391D646; Mon, 13 Jul 2020 13:44:17 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E70861A0E7C; Mon, 13 Jul 2020 13:44:16 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id CD6781A003D; Mon, 13 Jul 2020 13:44:13 +0200 (CEST) Received: from lsv03186.swis.in-blr01.nxp.com (lsv03186.swis.in-blr01.nxp.com [92.120.146.182]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 69797402C8; Mon, 13 Jul 2020 19:44:09 +0800 (SGT) From: Apeksha Gupta To: jerin.jacob@caviumnetworks.com Cc: thomas@monjalon.net, dev@dpdk.org, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, Apeksha Gupta , stable@dpdk.org Date: Mon, 13 Jul 2020 17:14:05 +0530 Message-Id: <20200713114406.4383-1-apeksha.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710130858.28889-1-apeksha.gupta@nxp.com> References: <20200710130858.28889-1-apeksha.gupta@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v3 1/2] app/test-eventdev: Fix pipeline atq 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" if-check is required to check the capability of all type queue. Fixes: 6bf570a9911 ("app/eventdev: add pipeline atq test") Cc: stable@dpdk.org Signed-off-by: Apeksha Gupta Acked-by: Pavan Nikhilesh --- v3: * Added patch 1. event/dpaa2: Add all type queue capability flag v2: * Removed unrequired patches 1. app/test-eventdev: Enhancing perf-queue packet flow 2. app/test-eventdev: Removed unwanted checks 3. event/dpaa2: Add all type queue capability flag 4. app/test-eventdev: Enhancing perf-atq packet flow 5. app/test-eventdev: fix eventdev queues --- app/test-eventdev/test_pipeline_atq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test-eventdev/test_pipeline_atq.c b/app/test-eventdev/test_pipeline_atq.c index 8e8686c145..0872b25b53 100644 --- a/app/test-eventdev/test_pipeline_atq.c +++ b/app/test-eventdev/test_pipeline_atq.c @@ -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; } From patchwork Mon Jul 13 11:44:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Apeksha Gupta X-Patchwork-Id: 73920 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5FD73A0540; Mon, 13 Jul 2020 13:44:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 544D51D65A; Mon, 13 Jul 2020 13:44:20 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id A6DDE1D646; Mon, 13 Jul 2020 13:44:17 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 82BEB200C59; Mon, 13 Jul 2020 13:44:17 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 64C41200C60; Mon, 13 Jul 2020 13:44:14 +0200 (CEST) Received: from lsv03186.swis.in-blr01.nxp.com (lsv03186.swis.in-blr01.nxp.com [92.120.146.182]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 421BA402DF; Mon, 13 Jul 2020 19:44:10 +0800 (SGT) From: Apeksha Gupta To: jerin.jacob@caviumnetworks.com Cc: thomas@monjalon.net, dev@dpdk.org, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, Apeksha Gupta , stable@dpdk.org Date: Mon, 13 Jul 2020 17:14:06 +0530 Message-Id: <20200713114406.4383-2-apeksha.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200713114406.4383-1-apeksha.gupta@nxp.com> References: <20200710130858.28889-1-apeksha.gupta@nxp.com> <20200713114406.4383-1-apeksha.gupta@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v3 2/2] event/dpaa2: Add all type queue capability flag 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" Event device capability flag added in event driver, Event device is capable of enqueuing events of any type to any queue. Fixes: 8f4a294c23 ("event/dpaa2: apply new capability flags") Cc: stable@dpdk.org Signed-off-by: Apeksha Gupta Acked-by: Nipun Gupta --- v3: * Added patch 1. event/dpaa2: Add all type queue capability flag v2: * Removed unrequired patches 1. app/test-eventdev: Enhancing perf-queue packet flow 2. app/test-eventdev: Removed unwanted checks 3. event/dpaa2: Add all type queue capability flag 4. app/test-eventdev: Enhancing perf-atq packet flow 5. app/test-eventdev: fix eventdev queues --- drivers/event/dpaa2/dpaa2_eventdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 0072db153b..14dcc50d4a 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -407,7 +407,8 @@ dpaa2_eventdev_info_get(struct rte_eventdev *dev, RTE_EVENT_DEV_CAP_BURST_MODE| RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK | RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT | - RTE_EVENT_DEV_CAP_NONSEQ_MODE; + RTE_EVENT_DEV_CAP_NONSEQ_MODE | + RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES; }