get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 51712,
    "url": "https://patches.dpdk.org/api/patches/51712/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190326122029.59359-4-xiaolong.ye@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20190326122029.59359-4-xiaolong.ye@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190326122029.59359-4-xiaolong.ye@intel.com",
    "date": "2019-03-26T12:20:27",
    "name": "[v6,3/5] lib/mempool: allow page size aligned mempool",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d283b1d3bfaf2313e689a7632f04ca6f0bf893b9",
    "submitter": {
        "id": 1120,
        "url": "https://patches.dpdk.org/api/people/1120/?format=api",
        "name": "Xiaolong Ye",
        "email": "xiaolong.ye@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190326122029.59359-4-xiaolong.ye@intel.com/mbox/",
    "series": [
        {
            "id": 3920,
            "url": "https://patches.dpdk.org/api/series/3920/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=3920",
            "date": "2019-03-26T12:20:24",
            "name": "Introduce AF_XDP PMD",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/3920/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/51712/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/51712/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 C751C4F94;\n\tTue, 26 Mar 2019 13:25:18 +0100 (CET)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby dpdk.org (Postfix) with ESMTP id 444604CA7\n\tfor <dev@dpdk.org>; Tue, 26 Mar 2019 13:25:08 +0100 (CET)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t26 Mar 2019 05:25:07 -0700",
            "from yexl-server.sh.intel.com ([10.67.110.206])\n\tby orsmga001.jf.intel.com with ESMTP; 26 Mar 2019 05:25:05 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.60,271,1549958400\"; d=\"scan'208\";a=\"217657722\"",
        "From": "Xiaolong Ye <xiaolong.ye@intel.com>",
        "To": "dev@dpdk.org, David Marchand <david.marchand@redhat.com>,\n\tAndrew Rybchenko <arybchenko@solarflare.com>",
        "Cc": "Qi Zhang <qi.z.zhang@intel.com>,\n\tKarlsson Magnus <magnus.karlsson@intel.com>,\n\tTopel Bjorn <bjorn.topel@intel.com>,\n\tMaxime Coquelin <maxime.coquelin@redhat.com>,\n\tStephen Hemminger <stephen@networkplumber.org>,\n\tFerruh Yigit <ferruh.yigit@intel.com>, Luca Boccassi <bluca@debian.org>, \n\tBruce Richardson <bruce.richardson@intel.com>,\n\tAnanyev Konstantin <konstantin.ananyev@intel.com>,\n\tXiaolong Ye <xiaolong.ye@intel.com>",
        "Date": "Tue, 26 Mar 2019 20:20:27 +0800",
        "Message-Id": "<20190326122029.59359-4-xiaolong.ye@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190326122029.59359-1-xiaolong.ye@intel.com>",
        "References": "<20190301080947.91086-1-xiaolong.ye@intel.com>\n\t<20190326122029.59359-1-xiaolong.ye@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v6 3/5] lib/mempool: allow page size aligned\n\tmempool",
        "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": "Allow create a mempool with page size aligned base address.\n\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\nSigned-off-by: Xiaolong Ye <xiaolong.ye@intel.com>\n---\n lib/librte_mempool/rte_mempool.c | 3 +++\n lib/librte_mempool/rte_mempool.h | 1 +\n 2 files changed, 4 insertions(+)",
    "diff": "diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c\nindex 683b216f9..cfbb49ea5 100644\n--- a/lib/librte_mempool/rte_mempool.c\n+++ b/lib/librte_mempool/rte_mempool.c\n@@ -543,6 +543,9 @@ rte_mempool_populate_default(struct rte_mempool *mp)\n \t\tif (try_contig)\n \t\t\tflags |= RTE_MEMZONE_IOVA_CONTIG;\n \n+\t\tif (mp->flags & MEMPOOL_CHUNK_F_PAGE_ALIGN)\n+\t\t\talign = RTE_MAX(align, (size_t)getpagesize());\n+\n \t\tmz = rte_memzone_reserve_aligned(mz_name, mem_size,\n \t\t\t\tmp->socket_id, flags, align);\n \ndiff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h\nindex 7c9cd9a2f..47729f7c9 100644\n--- a/lib/librte_mempool/rte_mempool.h\n+++ b/lib/librte_mempool/rte_mempool.h\n@@ -264,6 +264,7 @@ struct rte_mempool {\n #define MEMPOOL_F_POOL_CREATED   0x0010 /**< Internal: pool is created. */\n #define MEMPOOL_F_NO_IOVA_CONTIG 0x0020 /**< Don't need IOVA contiguous objs. */\n #define MEMPOOL_F_NO_PHYS_CONTIG MEMPOOL_F_NO_IOVA_CONTIG /* deprecated */\n+#define MEMPOOL_CHUNK_F_PAGE_ALIGN     0x0040 /**< Chunk's base address is page aligned */\n \n /**\n  * @internal When debug is enabled, store some statistics.\n",
    "prefixes": [
        "v6",
        "3/5"
    ]
}