get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 40789,
    "url": "http://patchwork.dpdk.org/api/patches/40789/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20180607235454.27832-1-dg@adax.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20180607235454.27832-1-dg@adax.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180607235454.27832-1-dg@adax.com",
    "date": "2018-06-07T23:54:54",
    "name": "[dpdk-dev,1/4] mbuf: add accessor function for private data area",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1f1015928ad873340a3bf7c8aa0e5f016841656f",
    "submitter": {
        "id": 1040,
        "url": "http://patchwork.dpdk.org/api/people/1040/?format=api",
        "name": "Dan Gora",
        "email": "dg@adax.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20180607235454.27832-1-dg@adax.com/mbox/",
    "series": [
        {
            "id": 38,
            "url": "http://patchwork.dpdk.org/api/series/38/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=38",
            "date": "2018-06-07T23:54:15",
            "name": "mbuf: Add new private data area accessor function.",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/38/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/40789/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/40789/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 27C406C93;\n\tFri,  8 Jun 2018 01:55:15 +0200 (CEST)",
            "from mail-qt0-f196.google.com (mail-qt0-f196.google.com\n\t[209.85.216.196]) by dpdk.org (Postfix) with ESMTP id 9CBD169D4\n\tfor <dev@dpdk.org>; Fri,  8 Jun 2018 01:55:13 +0200 (CEST)",
            "by mail-qt0-f196.google.com with SMTP id l10-v6so6584993qtj.0\n\tfor <dev@dpdk.org>; Thu, 07 Jun 2018 16:55:13 -0700 (PDT)",
            "from snappy.local.lan (201-1-204-188.dsl.telesp.net.br.\n\t[201.1.204.188]) by smtp.gmail.com with ESMTPSA id\n\tv29-v6sm11902268qkv.28.2018.06.07.16.55.10\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 07 Jun 2018 16:55:11 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id;\n\tbh=Bo/o7XfjaNPjsTsdv4cY/8TnyMbElgA297jAz/76bJU=;\n\tb=WSviax/s5b0N4eruV6YQyiiOJ1d23TmgyfDDoj+PtiMnzZyHYVCAqnmO5iGehB02Ie\n\tbqqviaw5g+w+AukUwdiRCKXwNykQz/EpZLmNdEYobKcvwBjIO3ijMhoVhzr9A2/HNf3w\n\tEoReRNJe4x8tguxwAn2g+RMdvbok77zLMyCpubY19LvlEdY50T0n9FxQ1j+MnP8bJb/c\n\tYQ9iErAjNWPedPMAfxCS3J2w/wvLrcDmdPJZP1fHVm8rGMHrWjDWE/YYcXVahe/OWAbz\n\t8Riz9UFOKNfu0iQxnuO9zQRds9xQpwY3b54osM+LE08nuaoNqWWtdwhpXCsGsIykK9zg\n\t8Keg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id;\n\tbh=Bo/o7XfjaNPjsTsdv4cY/8TnyMbElgA297jAz/76bJU=;\n\tb=ct7hBla5n5n2FZMUiUzEi4v1QvzhRAD6oCFaXR1Up7xUXbc2rPV9ASZTBOmrIsPzse\n\tfFtt5tb8nsQgVINKqoyVMY/3vZZHcOxuHouPB2modS31u/2E4CH4aBZFlBwH0pr6ilN3\n\tpvunlQWjWiOE6EOPw4l/aQvnTeTs0jej0avEPEEaHlRUCUKDrWQvoMi6gpcOQ7LcZXLh\n\tDWGWZwXLGvhnIIUBqtwGCLAse8EoATFKvlwL16aQvg8Qz9EXQSjH8AC8v2DbNMHOhfSf\n\tNQ8JZRLhlDIHnPiyZiRlCYb1JKWS8pGLzyssHBpe9ZI3Z8akIEWDuDt1wkpx9ZyCn+3f\n\tvo3w==",
        "X-Gm-Message-State": "APt69E3sAsDfplAKgXJDd1pxCdWkBfEZKagIUhEXpfnrDSfeO6OAXtQ8\n\tfI9uojBTcGLpUgxgn2glJTuB/A==",
        "X-Google-Smtp-Source": "ADUXVKL9xS5uZY2+woIGrRHGHlJAbDAGlOdeyVzumUVTqLJOAC1Hr9352qhi+sulPLKErQJbpEDPzg==",
        "X-Received": "by 2002:a0c:89dd:: with SMTP id\n\t29-v6mr3548746qvs.233.1528415712555; \n\tThu, 07 Jun 2018 16:55:12 -0700 (PDT)",
        "From": "Dan Gora <dg@adax.com>",
        "To": "dev@dpdk.org",
        "Cc": "Dan Gora <dg@adax.com>,\n\tOlivier Matz <olivier.matz@6wind.com>",
        "Date": "Thu,  7 Jun 2018 20:54:54 -0300",
        "Message-Id": "<20180607235454.27832-1-dg@adax.com>",
        "X-Mailer": "git-send-email 2.17.0.582.gccdcbd54c4",
        "Subject": "[dpdk-dev] [PATCH 1/4] mbuf: add accessor function for private data\n\tarea",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://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": "<https://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": "Add an inline accessor function to return the starting address of\nthe private data area in the supplied mbuf.\n\nIf the user did not allocate space for a private data area in the\nmbuf's memory pool, then return NULL.\n\nThis allows applications to easily access the private data area\nbetween the struct rte_mbuf and the data buffer in the specified mbuf\nwithout creating private macros or accessor functions.\n\nSigned-off-by: Dan Gora <dg@adax.com>\n---\n lib/librte_mbuf/rte_mbuf.h | 19 +++++++++++++++++++\n 1 file changed, 19 insertions(+)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex 8e6b4d292..0c4f8f698 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -728,6 +728,25 @@ rte_mbuf_to_baddr(struct rte_mbuf *md)\n \treturn buffer_addr;\n }\n \n+/**\n+ * Return the starting address of the private data area embedded in\n+ * the given mbuf.\n+ *\n+ * @param md\n+ *   The pointer to the mbuf.\n+ * @return\n+ *   The starting address of the private data area or NULL if there\n+ *   is no private data area.\n+ */\n+static inline void *\n+rte_mbuf_to_priv(struct rte_mbuf *md)\n+{\n+\tif (md->priv_size == 0)\n+\t\treturn NULL;\n+\n+\treturn RTE_PTR_ADD(md, sizeof(struct rte_mbuf));\n+}\n+\n /**\n  * Returns TRUE if given mbuf is cloned by mbuf indirection, or FALSE\n  * otherwise.\n",
    "prefixes": [
        "dpdk-dev",
        "1/4"
    ]
}