Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/56462/?format=api
http://patches.dpdk.org/api/patches/56462/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1563205172-352-3-git-send-email-erik.g.carrillo@intel.com/", "project": { "id": 1, "url": "http://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": "<1563205172-352-3-git-send-email-erik.g.carrillo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1563205172-352-3-git-send-email-erik.g.carrillo@intel.com", "date": "2019-07-15T15:39:32", "name": "[2/2] examples/performance-thread: init timer subsystem", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "428985c32df871bc0d424d639e588cb74f95db79", "submitter": { "id": 762, "url": "http://patches.dpdk.org/api/people/762/?format=api", "name": "Carrillo, Erik G", "email": "erik.g.carrillo@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1563205172-352-3-git-send-email-erik.g.carrillo@intel.com/mbox/", "series": [ { "id": 5502, "url": "http://patches.dpdk.org/api/series/5502/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5502", "date": "2019-07-15T15:39:30", "name": "fix segfault seen with performance-thread example", "version": 1, "mbox": "http://patches.dpdk.org/series/5502/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/56462/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/56462/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8FFD51B96E;\n\tMon, 15 Jul 2019 17:39:27 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 10EF82C18;\n\tMon, 15 Jul 2019 17:39:21 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t15 Jul 2019 08:39:20 -0700", "from wcpqa1.an.intel.com ([10.123.72.207])\n\tby orsmga008.jf.intel.com with ESMTP; 15 Jul 2019 08:39:20 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.63,493,1557212400\"; d=\"scan'208\";a=\"161116902\"", "From": "Erik Gabriel Carrillo <erik.g.carrillo@intel.com>", "To": "thomas@monjalon.net", "Cc": "dev@dpdk.org,\n\tstable@dpdk.org,\n\tian.betts@intel.com", "Date": "Mon, 15 Jul 2019 10:39:32 -0500", "Message-Id": "<1563205172-352-3-git-send-email-erik.g.carrillo@intel.com>", "X-Mailer": "git-send-email 1.7.10", "In-Reply-To": "<1563205172-352-1-git-send-email-erik.g.carrillo@intel.com>", "References": "<1563205172-352-1-git-send-email-erik.g.carrillo@intel.com>", "Subject": "[dpdk-dev] [PATCH 2/2] examples/performance-thread: init timer\n\tsubsystem", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "The timer subsystem should be initialized in the l3fwd-thread app before\nthe L-thread subsystem can be used.\n\nFixes: d48415e1fee3 (\"examples/performance-thread: add l3fwd-thread app\")\nCc: stable@dpdk.org\nCc: ian.betts@intel.com\n\nSigned-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>\n---\n examples/performance-thread/l3fwd-thread/main.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples/performance-thread/l3fwd-thread/main.c\nindex dd46895..c4065e8 100644\n--- a/examples/performance-thread/l3fwd-thread/main.c\n+++ b/examples/performance-thread/l3fwd-thread/main.c\n@@ -40,6 +40,7 @@\n #include <rte_udp.h>\n #include <rte_string_fns.h>\n #include <rte_pause.h>\n+#include <rte_timer.h>\n \n #include <cmdline_parse.h>\n #include <cmdline_parse_etheraddr.h>\n@@ -3497,6 +3498,10 @@ main(int argc, char **argv)\n \targc -= ret;\n \targv += ret;\n \n+\tret = rte_timer_subsystem_init();\n+\tif (ret < 0)\n+\t\trte_exit(EXIT_FAILURE, \"Failed to initialize timer subystem\\n\");\n+\n \t/* pre-init dst MACs for all ports to 02:00:00:00:00:xx */\n \tfor (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) {\n \t\tdest_eth_addr[portid] = RTE_ETHER_LOCAL_ADMIN_ADDR +\n", "prefixes": [ "2/2" ] }{ "id": 56462, "url": "