From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0056.outbound.protection.outlook.com [104.47.2.56]) by dpdk.org (Postfix) with ESMTP id A28504CA0 for ; Thu, 30 Aug 2018 08:06:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F8/lS4oaFQceW1ZsVM3hTamD0IukmoOqkc4GbEbqumQ=; b=mmp6lpUTObvucaW9q8SSodJjNZ42mT0/yiN9ADh2sjUjgBMX/zwXM0zvukV03IheVO+OXHr9aik525jbvvdvRd7AbfUEosuU5Jp9+RwtIYBC6wDirTxFtp7J3KXF4f3EjmhhSNYB4Kn5Yh+5JEXODAtWo5qiXnR+jnL5HATGWBo= Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by DB6PR0401MB2533.eurprd04.prod.outlook.com (2603:10a6:4:36::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 06:06:02 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: jerin.jacob@caviumnetworks.com, nipun.gupta@nxp.com Date: Thu, 30 Aug 2018 11:33:56 +0530 Message-Id: <1535609039-10869-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535609039-10869-1-git-send-email-hemant.agrawal@nxp.com> References: <1535609039-10869-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::14) To DB6PR0401MB2533.eurprd04.prod.outlook.com (2603:10a6:4:36::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 52e93221-faf9-49df-66c9-08d60e3eaa87 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB6PR0401MB2533; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2533; 3:chsKIzFSibeeqCODZj8ux4hrsYoneHCKfWCAkqtj/2BTTl62IHTY1bdsVeCrc1XWSKKEWM1Z6KnxgCb0F1d216y/zu9wMg5m3FujWI3rxjyjlfHca9/OHQNoMvKBPlRckoack+3SnYGMvHuyZCISmKUwqa6BoifrUtwaL9nc4OOEw2qOxjVA6WR0lBMForQ67ubxiXGKoc6OoxkIj4oYQ4jTED5xDoS/YPIDnC1R5ZiUNTdFDk+nBco//9QjtkHQ; 25:8ktAOioqNzENapu0C41WLa0kxZXapF93C+ul1F+4FAfxyOAVbw258M6sOJVqk6ZqrXCpXDsZ5ZqKV/s0c9DURME0hFF0bfzZtV3j/DRpfmCSKtfnjumXDg/N52q74O6gEQLMTdzujXKXrasZGOavq9KhqxXdXX3FDhTRcKknzXDknyuTJKoDtGvHgXve9zROoXp6By3LmT6lafVav7FyTuCpUxg7gdpf7oBS+TJeS21QUlicimFIfY5F9BeQr2140JhV2YndWx1Ytlg+II3YnPhL0KZKV1DNDRPJjdmfwPEvvMp0dyLRFipbqhIalZayXBYbVh0jbUJ2tPm1ystbig==; 31:1P+YXHV6pLu+n5L1fNSuAUiQKqX6YE+Os/0/vneICTeXAW9LVW/dlZ5mdAEFpDflG+/+YY/CzmBNaqkGY5q6k+2iT8a8vNPQqsznwj1nvNgcZpgmrgOH+ipeE2zBkoZOHRsS1QJetacJPVLRYSWXHL1ku9JQXMwargmpq84gSjYC4r/DPUWx9VKximfhFXc/cHJ/xrB9khdSfx2Wom8g6zndtBMTmXaqhXTBolZOutM= X-MS-TrafficTypeDiagnostic: DB6PR0401MB2533: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2533; 20:P6230o5gHjvOLgcblBO3WI4+/iq46BKm1pEv63az7deIi7CizcYuCdQ4xSJca8+OIZopND5TSd9oMviTGnTsCZ+bHGqknSlv/pCIApSQ7u4KF6sEJ9yFZiZkjM93w+7eM0rILYmNcC2bDxdjy4F1h2/Nq5ykw2rC34A9dE4kORutxSRe8bifB0ltNbOSTJzK7qXqpv59cyoZ3zhDxl+zAtTdMBU1ExSHBT5KdVT+Q6nb/pA5AKDLP4Nm/JNcyXXGwD+hyJvJRzzpqHHO9rSpRtHS1eMGbHtVVeqTqmo9rlWTkcAwEO6FwvSnGNQpdyubNHKyWFDJ/Y0FdhsO0F5LcOaejAl3FdAlMGRp+jWmwkpX+Wu26IdQ7c4t5xWyCI/crQkOa+MW0ZYVu8Kph3szImEon225qaoWcq30Clz48QN4eoujZD29LinJUeZpTweeASg8sZalhFI5zBpmiZ475ZDxg0mGDElo9eC8KmKMNqi5SrrqkMZh8NDDb4i9ztfE; 4:dZbGIn2fOSoeaw6NqcK3chP9delbKnx71dD+sk4ZM9DFs9SuhhfD0gRQTKsso1W55J2f5ygIicJgO8272CtvRPwV1dEeSKZXs29rkA0VFFlMUZeKQJK7h7uH2yOpM9JjEuzbGHINm6IiEvrpToWDfKrVmJF5mrvV4tLq/jgn7t66XJ/eCJsuUHu8MJD0xtXYWcPzShHYo+XKfyaz7ItjUavV9IjDL+HX/daFqMjK/u1CI6J+vbAwfYT8Iv1PhkRAvOB5Ztg0hHT0ECKoQDwHL+FhJ8QZ+0gQgfgYuDr/HkVI49zmMBPMEcUApOlOW5rq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301075)(10201501046)(3002001)(93006095)(93001095)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699016); SRVR:DB6PR0401MB2533; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0401MB2533; X-Forefront-PRVS: 07807C55DC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(136003)(366004)(39860400002)(346002)(376002)(189003)(199004)(16586007)(105586002)(106356001)(6512007)(386003)(26005)(6506007)(47776003)(478600001)(66066001)(48376002)(50466002)(97736004)(6346003)(186003)(16526019)(316002)(55236004)(53936002)(2361001)(6486002)(446003)(2616005)(4326008)(305945005)(25786009)(476003)(486006)(956004)(7736002)(11346002)(5024004)(2351001)(68736007)(44832011)(81166006)(5660300001)(2906002)(81156014)(36756003)(50226002)(8936002)(86362001)(6666003)(6116002)(5009440100003)(52116002)(3846002)(6916009)(8676002)(76176011)(51416003)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0401MB2533; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0401MB2533; 23:lwErMABQSe527dF3as1B0NYlz9uX+5GwVllzIXJ?= =?us-ascii?Q?JJcaB9ILS8T//MqdGUfBGIPeKzJPqqQ3OBq+F0mtXmcawwEPLkYhXF+wlzmg?= =?us-ascii?Q?wgYcz9d5uF79TKEru3XhWzcbNLo9dNu4mpR5XYCSqSO6vO49Ex8wQAMjnc0m?= =?us-ascii?Q?Q80105u9GE0gl7MCEYuEt9Uc04OeXXRMsVZ7kIN4Kd25DyUg7dTu3z2MbTFF?= =?us-ascii?Q?nnALIt/RtdIcQrzM+pYRQ+Rh6dc7dqWONQYVI0DdHojcAWA42WH7/844dKqr?= =?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LTNSmNdUHA8EpbV4tokzIv?= =?us-ascii?Q?iipN1kW9UYs/sahQMZMBScbyZV5wg58V95pIYA8AeIdlMJp8M9rH/HCTRgpx?= =?us-ascii?Q?okbkgJr+InXCVEPowsTMWIJ87StxHYhSxl9uYZJRkUBWLqmU/Kldm4eSOPIV?= =?us-ascii?Q?U6hn408hbL4JeVONy52hmR7AH9L+5QOavBDVIGI+n0fnk?= X-Microsoft-Antispam-Message-Info: wt+bsabP2CT3R5lU7G74kikQhDmEdNSaotkDR6TJO3UasigO8T3rIgcm8bjlCL6TejEXDjhQIjtKoaFWGLdAGOa797BWDvCc168ikHnv2SiL1uxWnbXx1egB2f3n/bKJp9yQW++S3JsXUKUaXD66bB5DqHDZsnkjJrWEHBN7tGJiBuM8dKQyZm/+SPefkvBA0NqCkWWEKl8mYM6TQPR/TSD5I/TX/Y2MhNDQjcJ9esOHlWG+pHhiRAs//zjCAMV+C4YCuyo48mYTQm0BWkgS97Tji65iKZRVEH3QaY43tAmy9aRg4oMvv5ZmistZ4F22/htDqgECZWPK6irGSCOhJ44a0vrtlNHZm6GWcKGOnR8= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2533; 6:FVGdJxWHvvCHlCcl/wFARtOr9Wyqh2zYMYiLH8RCqdYMwjLMDS5hfwVks7V8dsfMf1g+dqVQS7R8SUwPlNTld5Ir1boLa5Q6J/IqlT1InK6tdQQ4MBRRe2NIu563ZrEYHaWx3TLceFZysBVjgq4+R9S9Agy+QtvPJeg+vlN5/8D4lo5XXYTIe2W2E2nu1WtgaPt84E6ms2gp5eqfPnB91oPbeafFtGAk4YtsKSv97BKz1mbywt6zg9B5UMPQTeqzr1EOmYSSezoEjFyny+drjpuchZVPYa4+mlycjQP1K9VaztrsU9bYGab0TVtGCKtLiSKfsVwbvTN3SQ7Z9ETi81CQBDgLv9fteBzhanYwtANAUnpSPmqg1PrhPTffBFh60hH067smCmy/qJoSFBixYhCXYMZhA9lpNQPkTJGXCoMd7qzWZD2IulleNzYyL1X74OzVEkyaJHq+20OiVKiqWw==; 5:b69zXk+fHcPhb6xg7bvkijI3p5w8UX+AR+sdy7/zF2f5fQjeL1Q81l7sVHaB619IPUPqgwj5dRQFOs37/TnOVgWh6Gd5vPDljRBzPd+IxTrPrdxeGd3mPn4U3XcolwRLoXYlL7XHlenCsx9MIDVHofHMNnQ5/1OSl4SqWrMmdjA=; 7:wBELTaFtr9Wx3hS4JAhMWfairGo4YDLM83g/YFpnpx9j2WIVkpXD0zGM+swgKV5ZASxoPOtpRvmDrKpsmf1S6QiNtYlHXf5tHTaqFGqOZq0PlfsnItS5x1J3TKJkz2cD2kao2bbPLAUuTywmpa5l1z4U85ufnusbDl0aE1fO8z4RW6rBk8vf3pWMyisSbnvFUtWocTNQCsKj82JhPnEAK8E8VLLrmzKbmVFX/nix/dybNnVkZxE7aJjcr4hP/tmR SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 06:06:02.3428 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 52e93221-faf9-49df-66c9-08d60e3eaa87 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2533 Subject: [dpdk-dev] [PATCH 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: , X-List-Received-Date: Thu, 30 Aug 2018 06:06:03 -0000 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(-) 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; -- 2.7.4