get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 5005,
    "url": "https://patches.dpdk.org/api/patches/5005/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1433118752-14600-1-git-send-email-marc.sune@bisdn.de/",
    "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": "<1433118752-14600-1-git-send-email-marc.sune@bisdn.de>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1433118752-14600-1-git-send-email-marc.sune@bisdn.de",
    "date": "2015-06-01T00:32:32",
    "name": "[dpdk-dev] kni: ignore double calls to rte_kni_init()",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "c1aac9d8b6e2ed7b2aaab77d6d7227b9a9ef9be7",
    "submitter": {
        "id": 83,
        "url": "https://patches.dpdk.org/api/people/83/?format=api",
        "name": "Marc Sune",
        "email": "marc.sune@bisdn.de"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1433118752-14600-1-git-send-email-marc.sune@bisdn.de/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/5005/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/5005/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 BD7335693;\n\tMon,  1 Jun 2015 02:32:55 +0200 (CEST)",
            "from mx.bisdn.de (mx.bisdn.de [185.27.182.31])\n\tby dpdk.org (Postfix) with ESMTP id BD4FD12A8\n\tfor <dev@dpdk.org>; Mon,  1 Jun 2015 02:32:53 +0200 (CEST)",
            "from localhost.localdomain (f052159249.adsl.alicedsl.de\n\t[78.52.159.249])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby mx.bisdn.de (Postfix) with ESMTPSA id 386CFA2F87;\n\tMon,  1 Jun 2015 02:32:53 +0200 (CEST)"
        ],
        "From": "Marc Sune <marc.sune@bisdn.de>",
        "To": "dev@dpdk.org",
        "Date": "Mon,  1 Jun 2015 02:32:32 +0200",
        "Message-Id": "<1433118752-14600-1-git-send-email-marc.sune@bisdn.de>",
        "X-Mailer": "git-send-email 2.1.4",
        "Subject": "[dpdk-dev] [PATCH] kni: ignore double calls to rte_kni_init()",
        "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": "Prevent double initialization of the KNI subsytem.\n\nSigned-off-by: Marc Sune <marc.sune@bisdn.de>\n---\n lib/librte_kni/rte_kni.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/lib/librte_kni/rte_kni.c b/lib/librte_kni/rte_kni.c\nindex c5a0089..df0449f 100644\n--- a/lib/librte_kni/rte_kni.c\n+++ b/lib/librte_kni/rte_kni.c\n@@ -201,6 +201,10 @@ rte_kni_init(unsigned int max_kni_ifaces)\n \tchar obj_name[OBJNAMSIZ];\n \tchar mz_name[RTE_MEMZONE_NAMESIZE];\n \n+\t/* Immediately return if KNI is already initialized */\n+\tif (kni_memzone_pool.initialized)\n+\t\treturn;\n+\n \tif (max_kni_ifaces == 0) {\n \t\tRTE_LOG(ERR, KNI, \"Invalid number of max_kni_ifaces %d\\n\",\n \t\t\t\t\t\t\tmax_kni_ifaces);\n",
    "prefixes": [
        "dpdk-dev"
    ]
}