Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/73941/?format=api
http://patchwork.dpdk.org/api/patches/73941/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200713131501.17422-1-hemant.agrawal@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": "<20200713131501.17422-1-hemant.agrawal@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200713131501.17422-1-hemant.agrawal@nxp.com", "date": "2020-07-13T13:15:00", "name": "[v3,1/2] app/proc-info: enhance mempool to print ops name", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "4a2718288c66e9a17d14e214b536d88f2727a4ab", "submitter": { "id": 477, "url": "http://patchwork.dpdk.org/api/people/477/?format=api", "name": "Hemant Agrawal", "email": "hemant.agrawal@nxp.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20200713131501.17422-1-hemant.agrawal@nxp.com/mbox/", "series": [ { "id": 10995, "url": "http://patchwork.dpdk.org/api/series/10995/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=10995", "date": "2020-07-13T13:15:00", "name": "[v3,1/2] app/proc-info: enhance mempool to print ops name", "version": 3, "mbox": "http://patchwork.dpdk.org/series/10995/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/73941/comments/", "check": "fail", "checks": "http://patchwork.dpdk.org/api/patches/73941/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 0F6DBA0540;\n\tMon, 13 Jul 2020 15:19:29 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 840FB1D658;\n\tMon, 13 Jul 2020 15:19:28 +0200 (CEST)", "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n by dpdk.org (Postfix) with ESMTP id 1ED2A1D657\n for <dev@dpdk.org>; Mon, 13 Jul 2020 15:19:28 +0200 (CEST)", "from inva021.nxp.com (localhost [127.0.0.1])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id EC4F12000AB;\n Mon, 13 Jul 2020 15:19:27 +0200 (CEST)", "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D9E1520006A;\n Mon, 13 Jul 2020 15:19:25 +0200 (CEST)", "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n [10.232.133.63])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C9368402AA;\n Mon, 13 Jul 2020 21:19:22 +0800 (SGT)" ], "From": "Hemant Agrawal <hemant.agrawal@nxp.com>", "To": "dev@dpdk.org", "Cc": "maryam.tahhan@intel.com, reshma.pattan@intel.com,\n Hemant Agrawal <hemant.agrawal@nxp.com>", "Date": "Mon, 13 Jul 2020 18:45:00 +0530", "Message-Id": "<20200713131501.17422-1-hemant.agrawal@nxp.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200711095343.10523-1-hemant.agrawal@nxp.com>", "References": "<20200711095343.10523-1-hemant.agrawal@nxp.com>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Subject": "[dpdk-dev] [PATCH v3 1/2] app/proc-info: enhance mempool to print\n\tops name", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Enhance the mempool details to also print the ops index and name\n\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\nThese patches are built over Stephen's series:\nhttps://patches.dpdk.org/cover/69876/\nBut they can be applied independently as well.\n\n app/proc-info/main.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex e0b61b366..a5d16765b 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -1276,7 +1276,10 @@ show_mempool(char *name)\n \tif (name != NULL) {\n \t\tstruct rte_mempool *ptr = rte_mempool_lookup(name);\n \t\tif (ptr != NULL) {\n+\t\t\tstruct rte_mempool_ops *ops;\n+\n \t\t\tflags = ptr->flags;\n+\t\t\tops = rte_mempool_get_ops(ptr->ops_index);\n \t\t\tprintf(\" - Name: %s on socket %d\\n\"\n \t\t\t\t\" - flags:\\n\"\n \t\t\t\t\"\\t -- No spread (%c)\\n\"\n@@ -1306,6 +1309,8 @@ show_mempool(char *name)\n \t\t\tprintf(\" - Count: avail (%u), in use (%u)\\n\",\n \t\t\t\trte_mempool_avail_count(ptr),\n \t\t\t\trte_mempool_in_use_count(ptr));\n+\t\t\tprintf(\" - ops_index %d ops_name %s\\n\",\n+\t\t\t\tptr->ops_index, ops ? ops->name : \"NA\");\n \n \t\t\treturn;\n \t\t}\n", "prefixes": [ "v3", "1/2" ] }{ "id": 73941, "url": "