From patchwork Fri Oct 11 13:47:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nipun Gupta X-Patchwork-Id: 175965 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp799826ill; Fri, 11 Oct 2019 07:03:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1Rjf+EdK5b2B+ZinBonO1SvADIGKhOJ/0Pwo6wgc4YvRuuavVTMTQ0AhJVvsKcjDyK9nG X-Received: by 2002:a17:906:6a4f:: with SMTP id n15mr14039654ejs.19.1570802613296; Fri, 11 Oct 2019 07:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570802613; cv=none; d=google.com; s=arc-20160816; b=tn6/cVWtye/ednuzVGqMVRCCLWm52oFL++QDoIrrmBBLekPEeJJ7805jEsC/y4ay54 miPwDpz0sRlxyO2HhMfwGPJKTrr5AUQ7s79AJcD5J7dA1339p0MxXh43K7lVMGoi8xhE 1nRA80hKbNnJ9o4huePDmdTvdHsV6r83GmWmgpwX0LcvRRnEWUBus1yN2TBpmqENuUJA Gcl3/fqzuo70IzVvas8PyXo/7ceVBCaMBiw35El+zM3VZIi7Zm4654rwwee8qRZ5uWvC fCzTNR/7Tgww6qKmsbuRghi41lz/IkC6lF82vfrw3xdcPVxl3GR8S2hzfNDIBjvgjR6T F+xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:cc:to :from; bh=LOb/tGBD8uiwBa12kJVG70Rj9h98d9jmD4iJwtJ2pC0=; b=xs4MUXpy+MrB2DcUJvxo93pPCAs84G2bVWodoPBMgpds4Uza72eXjmReMr6vBOWj1O P4Lo+1z7+Xt4UqiFOdkzKyvLVpQGz+b2UM/MC3kLNyP/Mw47K7QIz5a7H+yv5EeZVEzs LvjQ0U6tkm/ejPmZ441rAIBvvgWAa9CWSwp3HQS0uO/VP4Ejyqgva+0HaX5l3lV8PCXZ X87/WYLU+Uxhg+7gkvV5lYqj5mMURrXiA7+RHUH50WJblJMaoE6rzXg3UqEe3/E0HG+/ utn+lZnd9/w+zprGbpaWldlm47xuWFZRBAj71Z/JE16i7mqnD70ZLltYhG9WkxHYdI+L /7nA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id dv24si5258442ejb.60.2019.10.11.07.03.33; Fri, 11 Oct 2019 07:03:33 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BAACB1EAED; Fri, 11 Oct 2019 16:03:32 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 409331EAEA; Fri, 11 Oct 2019 16:03:31 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id EFA861A0213; Fri, 11 Oct 2019 16:03:30 +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 4899F1A0096; Fri, 11 Oct 2019 16:03:28 +0200 (CEST) Received: from GDB1.ap.freescale.net (GDB1.ap.freescale.net [10.232.132.179]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 24A35402DA; Fri, 11 Oct 2019 22:03:24 +0800 (SGT) From: Nipun Gupta To: dev@dpdk.org Cc: jerinj@marvell.com, hemant.agrawal@nxp.com, stable@dpdk.org, Nipun Gupta Date: Fri, 11 Oct 2019 19:17:56 +0530 Message-Id: <20191011134757.3359-1-nipun.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 1/2] event/dpaa: fix number of supported atomic flows 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" The number of atomic flows supported was not returned correctly for DPAA driver. This patch fixes the same. Fixes: b08dc6430abd ("event/dpaa: add queue config get/set") Cc: stable@dpdk.org Signed-off-by: Nipun Gupta --- drivers/event/dpaa/dpaa_eventdev.c | 1 + drivers/event/dpaa/dpaa_eventdev.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 Acked-by: Hemant Agrawal diff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c index d02b8694e..570983251 100644 --- a/drivers/event/dpaa/dpaa_eventdev.c +++ b/drivers/event/dpaa/dpaa_eventdev.c @@ -471,6 +471,7 @@ dpaa_event_queue_def_conf(struct rte_eventdev *dev, uint8_t queue_id, RTE_SET_USED(queue_id); memset(queue_conf, 0, sizeof(struct rte_event_queue_conf)); + queue_conf->nb_atomic_flows = DPAA_EVENT_QUEUE_ATOMIC_FLOWS; queue_conf->schedule_type = RTE_SCHED_TYPE_PARALLEL; queue_conf->priority = RTE_EVENT_DEV_PRIORITY_HIGHEST; } diff --git a/drivers/event/dpaa/dpaa_eventdev.h b/drivers/event/dpaa/dpaa_eventdev.h index b8f247c61..5ce15a3db 100644 --- a/drivers/event/dpaa/dpaa_eventdev.h +++ b/drivers/event/dpaa/dpaa_eventdev.h @@ -32,7 +32,7 @@ do { \ RTE_EVENT_DEV_CAP_BURST_MODE; \ } while (0) -#define DPAA_EVENT_QUEUE_ATOMIC_FLOWS 0 +#define DPAA_EVENT_QUEUE_ATOMIC_FLOWS 2048 #define DPAA_EVENT_QUEUE_ORDER_SEQUENCES 2048 #define RTE_EVENT_ETH_RX_ADAPTER_DPAA_CAP \