Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/120109/?format=api
https://patches.dpdk.org/api/patches/120109/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20221123101931.1688238-4-rjarry@redhat.com/", "project": { "id": 1, "url": "https://patches.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": "<20221123101931.1688238-4-rjarry@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221123101931.1688238-4-rjarry@redhat.com", "date": "2022-11-23T10:19:30", "name": "[RFC,3/4] testpmd: add show lcores command", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": true, "hash": "9d95f3122b71e1e30826760b360ac793cb545abd", "submitter": { "id": 2850, "url": "https://patches.dpdk.org/api/people/2850/?format=api", "name": "Robin Jarry", "email": "rjarry@redhat.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20221123101931.1688238-4-rjarry@redhat.com/mbox/", "series": [ { "id": 25870, "url": "https://patches.dpdk.org/api/series/25870/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=25870", "date": "2022-11-23T10:19:27", "name": "lcore telemetry improvements", "version": 1, "mbox": "https://patches.dpdk.org/series/25870/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/120109/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/120109/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 59331A09E5;\n\tWed, 23 Nov 2022 11:19:58 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CE4E642D9A;\n\tWed, 23 Nov 2022 11:19:47 +0100 (CET)", "from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net\n [217.70.183.201])\n by mails.dpdk.org (Postfix) with ESMTP id DF32242D97\n for <dev@dpdk.org>; Wed, 23 Nov 2022 11:19:46 +0100 (CET)", "(Authenticated sender: robin@jarry.cc)\n by mail.gandi.net (Postfix) with ESMTPSA id 0993D1BF20A;\n Wed, 23 Nov 2022 10:19:44 +0000 (UTC)" ], "From": "Robin Jarry <rjarry@redhat.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n Jerin Jacob <jerinj@marvell.com>, Kevin Laatz <kevin.laatz@intel.com>,\n Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>, =?utf-8?q?Mattias_R?=\n\t=?utf-8?q?=C3=B6nnblom?= <hofors@lysator.liu.se>, =?utf-8?q?Morten_Br=C3=B8?=\n\t=?utf-8?q?rup?= <mb@smartsharesystems.com>, Robin Jarry <rjarry@redhat.com>", "Subject": "[RFC PATCH 3/4] testpmd: add show lcores command", "Date": "Wed, 23 Nov 2022 11:19:30 +0100", "Message-Id": "<20221123101931.1688238-4-rjarry@redhat.com>", "X-Mailer": "git-send-email 2.38.1", "In-Reply-To": "<20221123101931.1688238-1-rjarry@redhat.com>", "References": "<20221123101931.1688238-1-rjarry@redhat.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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": "Add a simple command that calls rte_lcore_dump().\n\nSigned-off-by: Robin Jarry <rjarry@redhat.com>\n---\n app/test-pmd/cmdline.c | 31 +++++++++++++++++++++++++++++++\n 1 file changed, 31 insertions(+)", "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex b32dc8bfd445..d290938ffb4e 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -7151,6 +7151,36 @@ static cmdline_parse_inst_t cmd_showfwdall = {\n \t},\n };\n \n+/* show lcores */\n+struct lcores_result {\n+\tcmdline_fixed_string_t show;\n+\tcmdline_fixed_string_t lcores;\n+};\n+\n+static cmdline_parse_token_string_t cmd_lcores_action =\n+\tTOKEN_STRING_INITIALIZER(struct lcores_result, show, \"show\");\n+static cmdline_parse_token_string_t cmd_lcores_lcores =\n+\tTOKEN_STRING_INITIALIZER(struct lcores_result, lcores, \"lcores\");\n+\n+static void\n+cmd_showlcores_parsed(__rte_unused void *parsed_result,\n+\t\t __rte_unused struct cmdline *cl,\n+\t\t __rte_unused void *data)\n+{\n+\trte_lcore_dump(stdout);\n+}\n+\n+static cmdline_parse_inst_t cmd_showlcores = {\n+\t.f = cmd_showlcores_parsed,\n+\t.data = NULL,\n+\t.help_str = \"show lcores\",\n+\t.tokens = {\n+\t\t(void *)&cmd_lcores_action,\n+\t\t(void *)&cmd_lcores_lcores,\n+\t\tNULL,\n+\t},\n+};\n+\n /* *** READ A RING DESCRIPTOR OF A PORT RX/TX QUEUE *** */\n struct cmd_read_rxd_txd_result {\n \tcmdline_fixed_string_t read;\n@@ -12637,6 +12667,7 @@ static cmdline_parse_ctx_t builtin_ctx[] = {\n \t(cmdline_parse_inst_t *)&cmd_showdevice,\n \t(cmdline_parse_inst_t *)&cmd_showcfg,\n \t(cmdline_parse_inst_t *)&cmd_showfwdall,\n+\t(cmdline_parse_inst_t *)&cmd_showlcores,\n \t(cmdline_parse_inst_t *)&cmd_start,\n \t(cmdline_parse_inst_t *)&cmd_start_tx_first,\n \t(cmdline_parse_inst_t *)&cmd_start_tx_first_n,\n", "prefixes": [ "RFC", "3/4" ] }{ "id": 120109, "url": "