get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/7704/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 7704,
    "url": "https://patches.dpdk.org/api/patches/7704/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/e27f33fdeb5c80b1c959d3a754eb2b3ea115c2fc.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": "<e27f33fdeb5c80b1c959d3a754eb2b3ea115c2fc.1444996480.git.pmatilai@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/e27f33fdeb5c80b1c959d3a754eb2b3ea115c2fc.1444996480.git.pmatilai@redhat.com",
    "date": "2015-10-16T11:58:14",
    "name": "[dpdk-dev,2/5] eal: refactor plugin init from eal_parse_args() to a helper function",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "371e72b21cc53697b577306315685348a290f654",
    "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/e27f33fdeb5c80b1c959d3a754eb2b3ea115c2fc.1444996480.git.pmatilai@redhat.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7704/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7704/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 3252E8E56;\n\tFri, 16 Oct 2015 13:58:31 +0200 (CEST)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id 46E4B8DA1\n\tfor <dev@dpdk.org>; Fri, 16 Oct 2015 13:58:28 +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 93818C0C1B02;\n\tFri, 16 Oct 2015 11:58:27 +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 t9GBwMXM015206; Fri, 16 Oct 2015 07:58:26 -0400"
        ],
        "From": "Panu Matilainen <pmatilai@redhat.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri, 16 Oct 2015 14:58:14 +0300",
        "Message-Id": "<e27f33fdeb5c80b1c959d3a754eb2b3ea115c2fc.1444996480.git.pmatilai@redhat.com>",
        "In-Reply-To": [
            "<cover.1444996152.git.pmatilai@redhat.com>",
            "<e18b068e2e25a82fb1d321a4bd4f32d41c6d83e6.1444996480.git.pmatilai@redhat.com>"
        ],
        "References": [
            "<cover.1443181743.git.pmatilai@redhat.com>\n\t<cover.1444996152.git.pmatilai@redhat.com>",
            "<e18b068e2e25a82fb1d321a4bd4f32d41c6d83e6.1444996480.git.pmatilai@redhat.com>"
        ],
        "X-Scanned-By": "MIMEDefang 2.68 on 10.5.11.26",
        "Subject": "[dpdk-dev] [PATCH 2/5] eal: refactor plugin init 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 | 21 ++++++++++++++-------\n 1 file changed, 14 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex cc66d9f..d8a53e4 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -548,6 +548,19 @@ eal_plugin_add(const char *path)\n \treturn 0;\n }\n \n+static void\n+eal_plugins_init(void)\n+{\n+\tstruct shared_driver *solib = NULL;\n+\n+\tTAILQ_FOREACH(solib, &solib_list, next) {\n+\t\tRTE_LOG(DEBUG, EAL, \"open shared lib %s\\n\", solib->name);\n+\t\tsolib->lib_handle = dlopen(solib->name, RTLD_NOW);\n+\t\tif (solib->lib_handle == NULL)\n+\t\t\tRTE_LOG(WARNING, EAL, \"%s\\n\", dlerror());\n+\t}\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@@ -741,7 +754,6 @@ rte_eal_init(int argc, char **argv)\n \tint i, fctret, ret;\n \tpthread_t thread_id;\n \tstatic rte_atomic32_t run_once = RTE_ATOMIC32_INIT(0);\n-\tstruct shared_driver *solib = NULL;\n \tconst char *logid;\n \tchar cpuset[RTE_CPU_AFFINITY_STR_LEN];\n \n@@ -837,12 +849,7 @@ rte_eal_init(int argc, char **argv)\n \n \trte_eal_mcfg_complete();\n \n-\tTAILQ_FOREACH(solib, &solib_list, next) {\n-\t\tRTE_LOG(DEBUG, EAL, \"open shared lib %s\\n\", solib->name);\n-\t\tsolib->lib_handle = dlopen(solib->name, RTLD_NOW);\n-\t\tif (solib->lib_handle == NULL)\n-\t\t\tRTE_LOG(WARNING, EAL, \"%s\\n\", dlerror());\n-\t}\n+\teal_plugins_init();\n \n \teal_thread_init_master(rte_config.master_lcore);\n \n",
    "prefixes": [
        "dpdk-dev",
        "2/5"
    ]
}