get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64808,
    "url": "http://patchwork.dpdk.org/api/patches/64808/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1579179869-32508-2-git-send-email-viacheslavo@mellanox.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": "<1579179869-32508-2-git-send-email-viacheslavo@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1579179869-32508-2-git-send-email-viacheslavo@mellanox.com",
    "date": "2020-01-16T13:04:25",
    "name": "[v4,1/5] mbuf: introduce routine to get private mbuf pool flags",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d2cf2fe76d0d5c4507b487b10995ace51c0bc8e3",
    "submitter": {
        "id": 1102,
        "url": "http://patchwork.dpdk.org/api/people/1102/?format=api",
        "name": "Slava Ovsiienko",
        "email": "viacheslavo@mellanox.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/1579179869-32508-2-git-send-email-viacheslavo@mellanox.com/mbox/",
    "series": [
        {
            "id": 8174,
            "url": "http://patchwork.dpdk.org/api/series/8174/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=8174",
            "date": "2020-01-16T13:04:25",
            "name": "mbuf: detach mbuf with pinned external buffer",
            "version": 4,
            "mbox": "http://patchwork.dpdk.org/series/8174/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/64808/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/64808/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 7A956A0352;\n\tThu, 16 Jan 2020 14:04:43 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2C3471D425;\n\tThu, 16 Jan 2020 14:04:43 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id E05D01D41C\n for <dev@dpdk.org>; Thu, 16 Jan 2020 14:04:41 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n viacheslavo@mellanox.com)\n with ESMTPS (AES256-SHA encrypted); 16 Jan 2020 15:04:40 +0200",
            "from pegasus11.mtr.labs.mlnx (pegasus11.mtr.labs.mlnx\n [10.210.16.104])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 00GD4e9X008247;\n Thu, 16 Jan 2020 15:04:40 +0200",
            "from pegasus11.mtr.labs.mlnx (localhost [127.0.0.1])\n by pegasus11.mtr.labs.mlnx (8.14.7/8.14.7) with ESMTP id 00GD4eGX000857;\n Thu, 16 Jan 2020 13:04:40 GMT",
            "(from viacheslavo@localhost)\n by pegasus11.mtr.labs.mlnx (8.14.7/8.14.7/Submit) id 00GD4eJj000843;\n Thu, 16 Jan 2020 13:04:40 GMT"
        ],
        "X-Authentication-Warning": "pegasus11.mtr.labs.mlnx: viacheslavo set sender to\n viacheslavo@mellanox.com using -f",
        "From": "Viacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "To": "dev@dpdk.org",
        "Cc": "matan@mellanox.com, rasland@mellanox.com, orika@mellanox.com,\n shahafs@mellanox.com, olivier.matz@6wind.com,\n stephen@networkplumber.org, thomas@mellanox.net",
        "Date": "Thu, 16 Jan 2020 13:04:25 +0000",
        "Message-Id": "<1579179869-32508-2-git-send-email-viacheslavo@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1579179869-32508-1-git-send-email-viacheslavo@mellanox.com>",
        "References": "<20191118094938.192850-1-shahafs@mellanox.com>\n <1579179869-32508-1-git-send-email-viacheslavo@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v4 1/5] mbuf: introduce routine to get private\n\tmbuf pool flags",
        "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "The routine rte_pktmbuf_priv_flags is introduced to fetch\nthe flags from the mbuf memory pool private structure\nin unified fashion.\n\nSigned-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>\n---\n lib/librte_mbuf/rte_mbuf.h | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex 219b110..e9f6fa9 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -306,6 +306,23 @@ struct rte_pktmbuf_pool_private {\n \tuint32_t flags; /**< reserved for future use. */\n };\n \n+/**\n+ * Return the flags from private data in an mempool structure.\n+ *\n+ * @param mp\n+ *   A pointer to the mempool structure.\n+ * @return\n+ *   The flags from the private data structure.\n+ */\n+static inline uint32_t\n+rte_pktmbuf_priv_flags(struct rte_mempool *mp)\n+{\n+\tstruct rte_pktmbuf_pool_private *mbp_priv;\n+\n+\tmbp_priv = (struct rte_pktmbuf_pool_private *)rte_mempool_get_priv(mp);\n+\treturn mbp_priv->flags;\n+}\n+\n #ifdef RTE_LIBRTE_MBUF_DEBUG\n \n /**  check mbuf type in debug mode */\n",
    "prefixes": [
        "v4",
        "1/5"
    ]
}