get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7706,
    "url": "https://patches.dpdk.org/api/patches/7706/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/42ab5ad11b473b964faaa2b0c622b92085d2545a.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": "<42ab5ad11b473b964faaa2b0c622b92085d2545a.1444996480.git.pmatilai@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/42ab5ad11b473b964faaa2b0c622b92085d2545a.1444996480.git.pmatilai@redhat.com",
    "date": "2015-10-16T11:58:16",
    "name": "[dpdk-dev,4/5] eal: add an error code to plugin init for the next step",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a0c8d376c0e75cf67b5760e98dfac5a740861338",
    "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/42ab5ad11b473b964faaa2b0c622b92085d2545a.1444996480.git.pmatilai@redhat.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7706/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7706/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 AA8ED8E94;\n\tFri, 16 Oct 2015 13:58:34 +0200 (CEST)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id 58E558E5B\n\tfor <dev@dpdk.org>; Fri, 16 Oct 2015 13:58:31 +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 AA85A8CF6A;\n\tFri, 16 Oct 2015 11:58:30 +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 t9GBwMXO015206; Fri, 16 Oct 2015 07:58:29 -0400"
        ],
        "From": "Panu Matilainen <pmatilai@redhat.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri, 16 Oct 2015 14:58:16 +0300",
        "Message-Id": "<42ab5ad11b473b964faaa2b0c622b92085d2545a.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 4/5] eal: add an error code to plugin init for\n\tthe next step",
        "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/bsdapp/eal/eal.c            | 3 ++-\n lib/librte_eal/common/eal_common_options.c | 3 ++-\n lib/librte_eal/common/eal_options.h        | 2 +-\n lib/librte_eal/linuxapp/eal/eal.c          | 3 ++-\n 4 files changed, 7 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c\nindex 73dab89..f07a3c3 100644\n--- a/lib/librte_eal/bsdapp/eal/eal.c\n+++ b/lib/librte_eal/bsdapp/eal/eal.c\n@@ -543,7 +543,8 @@ rte_eal_init(int argc, char **argv)\n \n \trte_eal_mcfg_complete();\n \n-\teal_plugins_init();\n+\tif (eal_plugins_init() < 0)\n+\t\trte_panic(\"Cannot init plugins\\n\");\n \n \teal_thread_init_master(rte_config.master_lcore);\n \ndiff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c\nindex f8fc68a..b542868 100644\n--- a/lib/librte_eal/common/eal_common_options.c\n+++ b/lib/librte_eal/common/eal_common_options.c\n@@ -167,7 +167,7 @@ eal_plugin_add(const char *path)\n \treturn 0;\n }\n \n-void\n+int\n eal_plugins_init(void)\n {\n \tstruct shared_driver *solib = NULL;\n@@ -178,6 +178,7 @@ eal_plugins_init(void)\n \t\tif (solib->lib_handle == NULL)\n \t\t\tRTE_LOG(WARNING, EAL, \"%s\\n\", dlerror());\n \t}\n+\treturn 0;\n }\n \n /*\ndiff --git a/lib/librte_eal/common/eal_options.h b/lib/librte_eal/common/eal_options.h\nindex 1f96825..e305fe8 100644\n--- a/lib/librte_eal/common/eal_options.h\n+++ b/lib/librte_eal/common/eal_options.h\n@@ -93,6 +93,6 @@ int eal_adjust_config(struct internal_config *internal_cfg);\n int eal_check_common_options(struct internal_config *internal_cfg);\n void eal_common_usage(void);\n enum rte_proc_type_t eal_proc_type_detect(void);\n-void eal_plugins_init(void);\n+int eal_plugins_init(void);\n \n #endif /* EAL_OPTIONS_H */\ndiff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex 455243e..26285e3 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -796,7 +796,8 @@ rte_eal_init(int argc, char **argv)\n \n \trte_eal_mcfg_complete();\n \n-\teal_plugins_init();\n+\tif (eal_plugins_init() < 0)\n+\t\trte_panic(\"Cannot init plugins\\n\");\n \n \teal_thread_init_master(rte_config.master_lcore);\n \n",
    "prefixes": [
        "dpdk-dev",
        "4/5"
    ]
}