get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 615,
    "url": "http://patches.dpdk.org/api/patches/615/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/05E7C1C5-2730-4BE3-B808-6F69821F7898@windriver.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": "<05E7C1C5-2730-4BE3-B808-6F69821F7898@windriver.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/05E7C1C5-2730-4BE3-B808-6F69821F7898@windriver.com",
    "date": "2014-09-28T05:28:44",
    "name": "[dpdk-dev,v2] rte_mempool_dump() crashes with NULL rte_mempool pointer.",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "be99e77cbb40c511be3f73b8ef8b1e4c10dbcde4",
    "submitter": {
        "id": 75,
        "url": "http://patches.dpdk.org/api/people/75/?format=api",
        "name": "Wiles, Roger Keith",
        "email": "keith.wiles@windriver.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/05E7C1C5-2730-4BE3-B808-6F69821F7898@windriver.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/615/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/615/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 0FC687E14;\n\tSun, 28 Sep 2014 07:22:18 +0200 (CEST)",
            "from mail.windriver.com (mail.windriver.com [147.11.1.11])\n\tby dpdk.org (Postfix) with ESMTP id 7749C1F7\n\tfor <dev@dpdk.org>; Sun, 28 Sep 2014 07:22:16 +0200 (CEST)",
            "from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com\n\t[147.11.189.40])\n\tby mail.windriver.com (8.14.9/8.14.5) with ESMTP id s8S5Sjaw007291\n\t(version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL)\n\tfor <dev@dpdk.org>; Sat, 27 Sep 2014 22:28:45 -0700 (PDT)",
            "from ALA-MBB.corp.ad.wrs.com ([169.254.1.18]) by\n\tALA-HCA.corp.ad.wrs.com ([147.11.189.40]) with mapi id 14.03.0174.001;\n\tSat, 27 Sep 2014 22:28:45 -0700"
        ],
        "From": "\"Wiles, Roger Keith\" <keith.wiles@windriver.com>",
        "To": "\"<dev@dpdk.org>\" <dev@dpdk.org>",
        "Thread-Topic": "[dpdk-dev] [PATCH v2] rte_mempool_dump() crashes with NULL\n\trte_mempool\tpointer.",
        "Thread-Index": "AQHP2t0S8e1ctlbauEatlaiZR/WDLw==",
        "Date": "Sun, 28 Sep 2014 05:28:44 +0000",
        "Message-ID": "<05E7C1C5-2730-4BE3-B808-6F69821F7898@windriver.com>",
        "References": "<DAE811FA-C1F1-444D-980C-311BCCE7FF3C@windriver.com>",
        "In-Reply-To": "<DAE811FA-C1F1-444D-980C-311BCCE7FF3C@windriver.com>",
        "Accept-Language": "en-US",
        "Content-Language": "en-US",
        "X-MS-Has-Attach": "",
        "X-MS-TNEF-Correlator": "",
        "x-originating-ip": "[172.25.40.166]",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-ID": "<C8ADF6801009DE47AE9176F8A20FA308@local>",
        "Content-Transfer-Encoding": "quoted-printable",
        "MIME-Version": "1.0",
        "Subject": "[dpdk-dev] [PATCH v2] rte_mempool_dump() crashes with NULL\n\trte_mempool\tpointer.",
        "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": "Check the FILE *f and rte_mempool *mp pointers for NULL and\nreturn plus print out a message if RTE_LIBRTE_MEMPOOL_DEBUG is enabled.\n\nSigned-off-by: Keith Wiles <keith.wiles@windriver.com>\n---\n lib/librte_mempool/rte_mempool.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c\nindex 332f469..0f71f10 100644\n--- a/lib/librte_mempool/rte_mempool.c\n+++ b/lib/librte_mempool/rte_mempool.c\n@@ -765,6 +765,9 @@ rte_mempool_dump(FILE *f, const struct rte_mempool *mp)\n    unsigned common_count;\n    unsigned cache_count;\n\n+   RTE_VERIFY(f != NULL);\n+   RTE_VERIFY(mp != NULL);\n+\n    fprintf(f, \"mempool <%s>@%p\\n\", mp->name, mp);\n    fprintf(f, \"  flags=%x\\n\", mp->flags);\n    fprintf(f, \"  ring=<%s>@%p\\n\", mp->ring->name, mp->ring);\n",
    "prefixes": [
        "dpdk-dev",
        "v2"
    ]
}