From patchwork Fri Sep 21 11:46:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 147243 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp713183ljw; Fri, 21 Sep 2018 04:48:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZOHkk/0bKLlBvVn1/mbUxlvyT7M6kVnCdzZr2eJrQHTTvmGBq3lrfKv71FSMsCTB5ItV5p X-Received: by 2002:a1c:4007:: with SMTP id n7-v6mr7069571wma.108.1537530497746; Fri, 21 Sep 2018 04:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537530497; cv=none; d=google.com; s=arc-20160816; b=f1NSfgbuIRQm+AQh8BbSg4JW3oaUcbL4Qe2Tm7Yr7yr9+9Ll4G8OziPtf/4PE4CDHO 5HVlfqOVfNA3NszwMmwzjlFeMXb6c60a9uscyrVKTEJuFZ4Bah24SDWwVTaWya19o9KI tABqmbWAEkTuDoHZ1Qll+g44h4nyerJzIx6lJIVuOzW+4M+/pEtRYMBBtBiGIQQidvUB FFYh9Aqsy425dC/ibixFCXbeKZw/HDOE8dZdFBi8y2YMVU111wFHqfC7nQ22kxuYHKKc 4jjBhcuoBlbZbCNOH0HxUyHAtA8S163B5Be75/Exri0ZH/cVCavq6T3E9ojs5RpvwLve GSWg== 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:references:in-reply-to :message-id:date:cc:to:from; bh=6C5Wbi4tDPiIU9UGgL/d123HgnaWLeV05i3TwHZcYm8=; b=I5MHj+cK2qCWQo6/1wfQPcdIaNFhIQ1XxokSsGGsnDZSrHNpFaKElj1U1sDQvm23vg s+if7iD5KUgaaXIsJ7WdzUYtOBjT+u/p2z+e8o2iP25wbwQVsG1u6pLn9gp8NDlS/Otc bjXeRXsQDXFEa59FZzgovuqeb8f2tx3XrSdTY5MJG1DnyB4cVobKwgLwO2z+TuT+cnlG uSoNc3ATvXR/d2pLSWjbkBvkj0C/K4fcrsmnmdRz9n72g1uEnVXLorecAIamxClxijC6 1B7F8jncAUou8YRAU4p1aORnJkqSdL32yJofe0548fnry4Osn3X8v6TUEu4r2mATjqIj gLjQ== 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 x23-v6si3918372wrd.120.2018.09.21.04.48.17; Fri, 21 Sep 2018 04:48:17 -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 944861DA4; Fri, 21 Sep 2018 13:48:16 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 6C52C1DA4 for ; Fri, 21 Sep 2018 13:48:15 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3D1121A02C5; Fri, 21 Sep 2018 13:48:15 +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 5D3F01A02B6; Fri, 21 Sep 2018 13:48:13 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 6C2C0402DD; Fri, 21 Sep 2018 19:48:10 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: jerin.jacob@caviumnetworks.com, Hemant Agrawal Date: Fri, 21 Sep 2018 17:16:03 +0530 Message-Id: <1537530366-4722-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537530366-4722-1-git-send-email-hemant.agrawal@nxp.com> References: <1535609039-10869-1-git-send-email-hemant.agrawal@nxp.com> <1537530366-4722-1-git-send-email-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 2/5] event/dpaa2: rename evq info to dpaa2 eventq 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" This is to keep the dpaa2 driver aligned with dpaa driver. Signed-off-by: Hemant Agrawal --- drivers/event/dpaa2/dpaa2_eventdev.c | 8 ++++---- drivers/event/dpaa2/dpaa2_eventdev.h | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index ea9d868..c4064a4 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -58,7 +58,7 @@ dpaa2_eventdev_enqueue_burst(void *port, const struct rte_event ev[], ((struct dpaa2_io_portal_t *)port)->eventdev; struct dpaa2_eventdev *priv = ev_dev->data->dev_private; uint32_t queue_id = ev[0].queue_id; - struct evq_info_t *evq_info = &priv->evq_info[queue_id]; + struct dpaa2_eventq *evq_info = &priv->evq_info[queue_id]; uint32_t fqid; struct qbman_swp *swp; struct qbman_fd fd_arr[MAX_TX_RING_SLOTS]; @@ -385,7 +385,7 @@ dpaa2_eventdev_queue_setup(struct rte_eventdev *dev, uint8_t queue_id, const struct rte_event_queue_conf *queue_conf) { struct dpaa2_eventdev *priv = dev->data->dev_private; - struct evq_info_t *evq_info = + struct dpaa2_eventq *evq_info = &priv->evq_info[queue_id]; EVENTDEV_INIT_FUNC_TRACE(); @@ -449,7 +449,7 @@ dpaa2_eventdev_port_unlink(struct rte_eventdev *dev, void *port, { struct dpaa2_eventdev *priv = dev->data->dev_private; struct dpaa2_io_portal_t *dpaa2_portal = port; - struct evq_info_t *evq_info; + struct dpaa2_eventq *evq_info; int i; EVENTDEV_INIT_FUNC_TRACE(); @@ -473,7 +473,7 @@ dpaa2_eventdev_port_link(struct rte_eventdev *dev, void *port, { struct dpaa2_eventdev *priv = dev->data->dev_private; struct dpaa2_io_portal_t *dpaa2_portal = port; - struct evq_info_t *evq_info; + struct dpaa2_eventq *evq_info; uint8_t channel_index; int ret, i, n; diff --git a/drivers/event/dpaa2/dpaa2_eventdev.h b/drivers/event/dpaa2/dpaa2_eventdev.h index 229f66a..d2f98c6 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.h +++ b/drivers/event/dpaa2/dpaa2_eventdev.h @@ -56,17 +56,18 @@ struct dpaa2_dpcon_dev { uint8_t channel_index; }; -struct evq_info_t { +struct dpaa2_eventq { /* DPcon device */ struct dpaa2_dpcon_dev *dpcon; /* Attached DPCI device */ struct dpaa2_dpci_dev *dpci; /* Configuration provided by the user */ uint32_t event_queue_cfg; + uint32_t event_queue_id; }; struct dpaa2_eventdev { - struct evq_info_t evq_info[DPAA2_EVENT_MAX_QUEUES]; + struct dpaa2_eventq evq_info[DPAA2_EVENT_MAX_QUEUES]; uint32_t dequeue_timeout_ns; uint8_t max_event_queues; uint8_t nb_event_queues;