get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 15687,
    "url": "http://patches.dpdk.org/api/patches/15687/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1473306740-11039-1-git-send-email-droidluo@gmail.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": "<1473306740-11039-1-git-send-email-droidluo@gmail.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1473306740-11039-1-git-send-email-droidluo@gmail.com",
    "date": "2016-09-08T03:52:20",
    "name": "[dpdk-dev] mempool: fix sp sc mempool bug",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "74668232e3acd1101695a2f92519a11be65b6919",
    "submitter": {
        "id": 561,
        "url": "http://patches.dpdk.org/api/people/561/?format=api",
        "name": "Weiliang Luo",
        "email": "droidluo@gmail.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/1473306740-11039-1-git-send-email-droidluo@gmail.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/15687/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/15687/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 9D40C8E56;\n\tThu,  8 Sep 2016 05:52:38 +0200 (CEST)",
            "from mail-pf0-f196.google.com (mail-pf0-f196.google.com\n\t[209.85.192.196]) by dpdk.org (Postfix) with ESMTP id 961668DB5\n\tfor <dev@dpdk.org>; Thu,  8 Sep 2016 05:52:37 +0200 (CEST)",
            "by mail-pf0-f196.google.com with SMTP id n24so1864104pfb.2\n\tfor <dev@dpdk.org>; Wed, 07 Sep 2016 20:52:37 -0700 (PDT)",
            "from localhost.localdomain (cpe-70-113-18-193.austin.res.rr.com.\n\t[70.113.18.193]) by smtp.gmail.com with ESMTPSA id\n\ta198sm24619933pfa.27.2016.09.07.20.52.35\n\t(version=TLS1 cipher=AES128-SHA bits=128/128);\n\tWed, 07 Sep 2016 20:52:36 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=from:to:cc:subject:date:message-id;\n\tbh=MLlf9CVXiseips90a/WKVCtSXMAPtIYI5n3mquKQVzg=;\n\tb=vvjqUaRaWeDaB0S0SWz5nFGnGGQ68st2yivuezXxk2V0EOdSJkSyF7KaKCpTjXn6XK\n\tsEnR67z2VTl3PkjSwedD9+BUmwMT/hzlCbdlTzGjbmxdSCr25GQ/6tzdWRI1dNt+kUon\n\t8KYHQ5XraAqfQwMEQ/I53htld0PL0b7xWXG3n/9y8wz8RK4IvIWLdUb3TH1a1lcceKKB\n\ttpHa6QgvWwO4zIh5mmUeJfqhR07FSmC+whg3NgwsVMziS/BNmBdiA2DOC0WzR4Vf4imf\n\ts5/2DYYDZ2adeULNgpE8Z+Vg7FXL7C5Uy9L3huKts9ULtDS9Q8zVd7UkGx0CQe8QFr3+\n\tEbsw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=MLlf9CVXiseips90a/WKVCtSXMAPtIYI5n3mquKQVzg=;\n\tb=QdBanc6IJnd5SmjvJclJLt1ckCNiPm4fAqkLnPxBZ40HF0il5SZfLcYLdYacr3si2+\n\tdWPqGc/spbuub5nj8cSJur1z/yiY6qS3Hx03Bgx1QrxJJaaHbwDMTLkw81xxfRySy7uc\n\tj3sZ3LKlSnvL8Il3FZYnunYscacaN5rsD0Wb6ZfvvCYPgvdGboq4A87ex9oVSfMD+KOI\n\toiEjxzYfEfmRnlS24SDUjAvLU9ZSPdf7flHFVmnddm7auk+kmhk6JDx/oV0SFluNS7bw\n\tEEsES7PSgJCGyfBr5hQVnRzwlPlqeHmelks2xAggOTRicUYpTjIuw/MuxDn7juoR0kjJ\n\tDVVg==",
        "X-Gm-Message-State": "AE9vXwN2XMCHnDZ+FU99WW8aOjHNbgZOIXBk9ozR30VNcbWkOgqdz32ZncpPefjsI4aoaw==",
        "X-Received": "by 10.98.58.19 with SMTP id h19mr16863952pfa.125.1473306756807; \n\tWed, 07 Sep 2016 20:52:36 -0700 (PDT)",
        "From": "Weiliang Luo <droidluo@gmail.com>",
        "To": "dev@dpdk.org",
        "Cc": "Weiliang Luo <droidluo@gmail.com>",
        "Date": "Wed,  7 Sep 2016 22:52:20 -0500",
        "Message-Id": "<1473306740-11039-1-git-send-email-droidluo@gmail.com>",
        "X-Mailer": "git-send-email 2.7.4 (Apple Git-66)",
        "Subject": "[dpdk-dev] [PATCH] mempool: fix sp sc mempool bug",
        "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: Weiliang Luo <droidluo@gmail.com>\n---\n lib/librte_mempool/rte_mempool.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c\nindex 2e28e2e..350d77a 100644\n--- a/lib/librte_mempool/rte_mempool.c\n+++ b/lib/librte_mempool/rte_mempool.c\n@@ -879,7 +879,7 @@ rte_mempool_create(const char *name, unsigned n, unsigned elt_size,\n \t * Since we have 4 combinations of the SP/SC/MP/MC examine the flags to\n \t * set the correct index into the table of ops structs.\n \t */\n-\tif (flags & (MEMPOOL_F_SP_PUT | MEMPOOL_F_SC_GET))\n+\tif ((flags & MEMPOOL_F_SP_PUT) && (flags & MEMPOOL_F_SC_GET))\n \t\trte_mempool_set_ops_byname(mp, \"ring_sp_sc\", NULL);\n \telse if (flags & MEMPOOL_F_SP_PUT)\n \t\trte_mempool_set_ops_byname(mp, \"ring_sp_mc\", NULL);\n",
    "prefixes": [
        "dpdk-dev"
    ]
}