Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/104943/?format=api
http://patchwork.dpdk.org/api/patches/104943/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20211206121824.3493-16-nipun.gupta@nxp.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20211206121824.3493-16-nipun.gupta@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211206121824.3493-16-nipun.gupta@nxp.com", "date": "2021-12-06T12:18:22", "name": "[15/17] net/pfe: reduce driver initialization time", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "d594b22f24f64ffdbe8f0ddf5db3652731eba12d", "submitter": { "id": 471, "url": "http://patchwork.dpdk.org/api/people/471/?format=api", "name": "Nipun Gupta", "email": "nipun.gupta@nxp.com" }, "delegate": { "id": 319, "url": "http://patchwork.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20211206121824.3493-16-nipun.gupta@nxp.com/mbox/", "series": [ { "id": 20873, "url": "http://patchwork.dpdk.org/api/series/20873/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20873", "date": "2021-12-06T12:18:07", "name": "features and fixes on NXP eth devices", "version": 1, "mbox": "http://patchwork.dpdk.org/series/20873/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/104943/comments/", "check": "warning", "checks": "http://patchwork.dpdk.org/api/patches/104943/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id EB49EA034F;\n\tMon, 6 Dec 2021 13:20:05 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3151942773;\n\tMon, 6 Dec 2021 13:18:47 +0100 (CET)", "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n by mails.dpdk.org (Postfix) with ESMTP id 61477426F2\n for <dev@dpdk.org>; Mon, 6 Dec 2021 13:18:33 +0100 (CET)", "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 435061A132B;\n Mon, 6 Dec 2021 13:18:33 +0100 (CET)", "from aprdc01srsp001v.ap-rdc01.nxp.com\n (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0CCFC1A0E16;\n Mon, 6 Dec 2021 13:18:33 +0100 (CET)", "from lsv03274.swis.in-blr01.nxp.com (lsv03274.swis.in-blr01.nxp.com\n [92.120.147.114])\n by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 6AE46183ACDD;\n Mon, 6 Dec 2021 20:18:32 +0800 (+08)" ], "From": "nipun.gupta@nxp.com", "To": "dev@dpdk.org", "Cc": "thomas@monjalon.net, ferruh.yigit@intel.com, hemant.agrawal@nxp.com,\n Gagandeep Singh <g.singh@nxp.com>", "Subject": "[PATCH 15/17] net/pfe: reduce driver initialization time", "Date": "Mon, 6 Dec 2021 17:48:22 +0530", "Message-Id": "<20211206121824.3493-16-nipun.gupta@nxp.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20211206121824.3493-1-nipun.gupta@nxp.com>", "References": "<20211206121824.3493-1-nipun.gupta@nxp.com>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "From: Gagandeep Singh <g.singh@nxp.com>\n\nThis patch reduces the delay in the device init.\n\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\n---\n drivers/net/pfe/pfe_hif.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/pfe/pfe_hif.c b/drivers/net/pfe/pfe_hif.c\nindex c4a7154ba7..eade726b2e 100644\n--- a/drivers/net/pfe/pfe_hif.c\n+++ b/drivers/net/pfe/pfe_hif.c\n@@ -1,5 +1,5 @@\n /* SPDX-License-Identifier: BSD-3-Clause\n- * Copyright 2018-2019 NXP\n+ * Copyright 2018-2020 NXP\n */\n \n #include \"pfe_logs.h\"\n@@ -9,6 +9,8 @@\n #include <sys/eventfd.h>\n #include <arpa/inet.h>\n \n+#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))\n+#define msleep(x) rte_delay_us(1000 * (x))\n static int\n pfe_hif_alloc_descr(struct pfe_hif *hif)\n {\n@@ -766,7 +768,7 @@ pfe_hif_rx_idle(struct pfe_hif *hif)\n \t\tif (rx_status & BDP_CSR_RX_DMA_ACTV)\n \t\t\tsend_dummy_pkt_to_hif();\n \n-\t\tsleep(1);\n+\t\tmsleep(DIV_ROUND_UP(100, 1000));\n \t} while (--hif_stop_loop);\n \n \tif (readl(HIF_RX_STATUS) & BDP_CSR_RX_DMA_ACTV)\n", "prefixes": [ "15/17" ] }{ "id": 104943, "url": "