Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/7703/?format=api
https://patches.dpdk.org/api/patches/7703/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/e18b068e2e25a82fb1d321a4bd4f32d41c6d83e6.1444996480.git.pmatilai@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": "<e18b068e2e25a82fb1d321a4bd4f32d41c6d83e6.1444996480.git.pmatilai@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/e18b068e2e25a82fb1d321a4bd4f32d41c6d83e6.1444996480.git.pmatilai@redhat.com", "date": "2015-10-16T11:58:13", "name": "[dpdk-dev,1/5] eal: refactor plugin list append from eal_parse_args() to a helper function", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "70594ab6835cc3bb07ddd870c3d26701a1533099", "submitter": { "id": 169, "url": "https://patches.dpdk.org/api/people/169/?format=api", "name": "Panu Matilainen", "email": "pmatilai@redhat.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/e18b068e2e25a82fb1d321a4bd4f32d41c6d83e6.1444996480.git.pmatilai@redhat.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/7703/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/7703/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id CDAB78DA9;\n\tFri, 16 Oct 2015 13:58:29 +0200 (CEST)", "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id DB67A592B\n\tfor <dev@dpdk.org>; Fri, 16 Oct 2015 13:58:26 +0200 (CEST)", "from int-mx13.intmail.prod.int.phx2.redhat.com\n\t(int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26])\n\tby mx1.redhat.com (Postfix) with ESMTPS id 21D0BC1C9107;\n\tFri, 16 Oct 2015 11:58:25 +0000 (UTC)", "from dhcp195.koti.laiskiainen.org.com (vpn1-6-41.ams2.redhat.com\n\t[10.36.6.41])\n\tby int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with\n\tESMTP id t9GBwMXL015206; Fri, 16 Oct 2015 07:58:24 -0400" ], "From": "Panu Matilainen <pmatilai@redhat.com>", "To": "dev@dpdk.org", "Date": "Fri, 16 Oct 2015 14:58:13 +0300", "Message-Id": "<e18b068e2e25a82fb1d321a4bd4f32d41c6d83e6.1444996480.git.pmatilai@redhat.com>", "In-Reply-To": "<cover.1444996152.git.pmatilai@redhat.com>", "References": "<cover.1443181743.git.pmatilai@redhat.com>\n\t<cover.1444996152.git.pmatilai@redhat.com>", "X-Scanned-By": "MIMEDefang 2.68 on 10.5.11.26", "Subject": "[dpdk-dev] [PATCH 1/5] eal: refactor plugin list append from\n\teal_parse_args() to a helper function", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Signed-off-by: Panu Matilainen <pmatilai@redhat.com>\n---\n lib/librte_eal/linuxapp/eal/eal.c | 28 +++++++++++++++++++---------\n 1 file changed, 19 insertions(+), 9 deletions(-)", "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex 33e1067..cc66d9f 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -530,6 +530,24 @@ eal_log_level_parse(int argc, char **argv)\n \toptind = 0; /* reset getopt lib */\n }\n \n+static int\n+eal_plugin_add(const char *path)\n+{\n+\tstruct shared_driver *solib;\n+\n+\tsolib = malloc(sizeof(*solib));\n+\tif (solib == NULL) {\n+\t\tRTE_LOG(ERR, EAL, \"malloc(solib) failed\\n\");\n+\t\treturn -1;\n+\t}\n+\tmemset(solib, 0, sizeof(*solib));\n+\tstrncpy(solib->name, path, PATH_MAX-1);\n+\tsolib->name[PATH_MAX-1] = 0;\n+\tTAILQ_INSERT_TAIL(&solib_list, solib, next);\n+\n+\treturn 0;\n+}\n+\n /* Parse the argument given in the command line of the application */\n static int\n eal_parse_args(int argc, char **argv)\n@@ -538,7 +556,6 @@ eal_parse_args(int argc, char **argv)\n \tchar **argvopt;\n \tint option_index;\n \tchar *prgname = argv[0];\n-\tstruct shared_driver *solib;\n \n \targvopt = argv;\n \n@@ -570,15 +587,8 @@ eal_parse_args(int argc, char **argv)\n \n \t\t/* force loading of external driver */\n \t\tcase 'd':\n-\t\t\tsolib = malloc(sizeof(*solib));\n-\t\t\tif (solib == NULL) {\n-\t\t\t\tRTE_LOG(ERR, EAL, \"malloc(solib) failed\\n\");\n+\t\t\tif (eal_plugin_add(optarg) == -1)\n \t\t\t\treturn -1;\n-\t\t\t}\n-\t\t\tmemset(solib, 0, sizeof(*solib));\n-\t\t\tstrncpy(solib->name, optarg, PATH_MAX-1);\n-\t\t\tsolib->name[PATH_MAX-1] = 0;\n-\t\t\tTAILQ_INSERT_TAIL(&solib_list, solib, next);\n \t\t\tbreak;\n \n \t\t/* long options */\n", "prefixes": [ "dpdk-dev", "1/5" ] }{ "id": 7703, "url": "