get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41239,
    "url": "http://patches.dpdk.org/api/patches/41239/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180618233534.21611-1-dg@adax.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": "<20180618233534.21611-1-dg@adax.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180618233534.21611-1-dg@adax.com",
    "date": "2018-06-18T23:35:34",
    "name": "[v2,1/4] mbuf: add accessor function for private data area",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "1fa3c3ef4d50ae51d3e0aa29a97ccc453fe637b6",
    "submitter": {
        "id": 1040,
        "url": "http://patches.dpdk.org/api/people/1040/?format=api",
        "name": "Dan Gora",
        "email": "dg@adax.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/20180618233534.21611-1-dg@adax.com/mbox/",
    "series": [
        {
            "id": 158,
            "url": "http://patches.dpdk.org/api/series/158/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=158",
            "date": "2018-06-18T23:34:41",
            "name": "mbuf: Add new private data area accessor function.",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/158/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41239/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/41239/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 5E70D2BBD;\n\tTue, 19 Jun 2018 01:35:50 +0200 (CEST)",
            "from mail-ot0-f194.google.com (mail-ot0-f194.google.com\n\t[74.125.82.194]) by dpdk.org (Postfix) with ESMTP id BE1662AA0\n\tfor <dev@dpdk.org>; Tue, 19 Jun 2018 01:35:48 +0200 (CEST)",
            "by mail-ot0-f194.google.com with SMTP id p95-v6so20520852ota.5\n\tfor <dev@dpdk.org>; Mon, 18 Jun 2018 16:35:48 -0700 (PDT)",
            "from linux.adax.com (172-11-198-60.lightspeed.sntcca.sbcglobal.net.\n\t[172.11.198.60]) by smtp.gmail.com with ESMTPSA id\n\tp128-v6sm7091635oia.31.2018.06.18.16.35.46\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 18 Jun 2018 16:35:47 -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=DJEhK8kub6zpNT+xJ1xVG1DnPLFHxmDXU/A/FyGWr2E=;\n\tb=qLG+06/yfW3nasLQm849GvWRHqIqtN2+ji0EZClA4dGleEWlyeG28+RioMpko8tdE1\n\tTwTBJo7HX7blNKZGTNTsetcqm0UPm9MDhl+2oRCPGJ67XS9GWts93lw0jfO+3KYl2tgn\n\tOIN36UB+6gcMZVoU/YBgBskDfCoYxPh/dGm4jWQTdAeKIte8F88MJ9c17h9a549uS46A\n\tvxeYXw6anAF5QH5L8U0NORO2iLN6u9Te0XSzwiUeSl9as4PzRa5WHs8VyR823f3u7KUo\n\tyMskFbdCZclhGPov4rkTEHcvv+/UF/lb5PunBnoDDkD+vTJvpIQ/dNI8ow3vaEMY7BLq\n\t1UCg==",
        "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=DJEhK8kub6zpNT+xJ1xVG1DnPLFHxmDXU/A/FyGWr2E=;\n\tb=AA/4LdZ4e7U+kYc5MSqSdvV1hWT/Z3zD5pjO76CwuMThb/WdGEMzLXTGWfmLfFneWd\n\ttaxlGD0cXWag/punEqWR4LwA69wBYxdLtcE6YuWE/sUI8IZVIBk3ymSp0rObuI1Hbv8i\n\t4mQ0r/qW7xnWUFR5e4eDxoEYAcCzVQVZ/FuzxK0foM9pF2tnvY5f3alSGUpv4pbtiM6I\n\t2M9Sy0ze2vFHoYBxfJq5w+wyZiziFSl0utPfu1kL8Y1tlpH8RP4Tc3nM5OFZoDscNzXA\n\t0DRjela8yYk1lOryVrPC0CkBosIE7LNc26zwncb9uWjFORLPderXEqtumW4i8UpO2PyX\n\t4ABA==",
        "X-Gm-Message-State": "APt69E2pPZA5m9ZDKIP4LiTSu8loWjkwHbxxaoEr1xeuA3TDHQcZHxrl\n\tT/eCTob8mk/PIt9m4SvdxAUPFQ==",
        "X-Google-Smtp-Source": "ADUXVKIM8Npg6k9oJj/5MMq0GqRqmVXO+nJAOSYN/Vp5qBF+HP5T1gn84/PsgytAtDDRjH4LWmLbgw==",
        "X-Received": "by 2002:a9d:428c:: with SMTP id\n\tr12-v6mr8453070ote.296.1529364947799; \n\tMon, 18 Jun 2018 16:35:47 -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": "Mon, 18 Jun 2018 16:35:34 -0700",
        "Message-Id": "<20180618233534.21611-1-dg@adax.com>",
        "X-Mailer": "git-send-email 2.18.0.rc1.1.g6f333ff2f",
        "Subject": "[dpdk-dev] [PATCH v2 1/4] mbuf: add accessor function for private\n\tdata area",
        "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://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/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\nThis allows applications to easily access the private data area between\nthe struct rte_mbuf and the data buffer in the specified mbuf without\ncreating private macros or accessor functions.\n\nNo checks are made to ensure that a private data area actually exists\nin the buffer.\n\nSigned-off-by: Dan Gora <dg@adax.com>\n---\n lib/librte_mbuf/rte_mbuf.h | 18 ++++++++++++++++++\n 1 file changed, 18 insertions(+)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex 8e6b4d292..08c58335d 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -728,6 +728,24 @@ 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+ * Note that no check is made to ensure that a private data area\n+ * actually exists in the supplied mbuf.\n+ *\n+ * @param md\n+ *   The pointer to the mbuf.\n+ * @return\n+ *   The starting address of the private data area of the given mbuf.\n+ */\n+static inline void * __rte_experimental\n+rte_mbuf_to_priv(struct rte_mbuf *m)\n+{\n+\treturn RTE_PTR_ADD(m, sizeof(struct rte_mbuf));\n+}\n+\n /**\n  * Returns TRUE if given mbuf is cloned by mbuf indirection, or FALSE\n  * otherwise.\n",
    "prefixes": [
        "v2",
        "1/4"
    ]
}