get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 49229,
    "url": "http://patches.dpdk.org/api/patches/49229/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/b8e9f484aacd5361331bf0d1d90ae4f44c715915.1545390524.git.anatoly.burakov@intel.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": "<b8e9f484aacd5361331bf0d1d90ae4f44c715915.1545390524.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/b8e9f484aacd5361331bf0d1d90ae4f44c715915.1545390524.git.anatoly.burakov@intel.com",
    "date": "2018-12-21T11:09:14",
    "name": "[3/4] test/extmem: check if memseg list is external",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8ea8250faa377f33cdb293ee64c53f691ca83525",
    "submitter": {
        "id": 4,
        "url": "http://patches.dpdk.org/api/people/4/?format=api",
        "name": "Anatoly Burakov",
        "email": "anatoly.burakov@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/b8e9f484aacd5361331bf0d1d90ae4f44c715915.1545390524.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 2918,
            "url": "http://patches.dpdk.org/api/series/2918/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2918",
            "date": "2018-12-21T11:09:12",
            "name": "[1/4] test/extmem: refactor and rename test functions",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/2918/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/49229/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/49229/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 9C2F01BD81;\n\tFri, 21 Dec 2018 12:09:28 +0100 (CET)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id E3EB629C6\n\tfor <dev@dpdk.org>; Fri, 21 Dec 2018 12:09:22 +0100 (CET)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t21 Dec 2018 03:09:21 -0800",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby fmsmga004.fm.intel.com with ESMTP; 21 Dec 2018 03:09:20 -0800",
            "from sivswdev05.ir.intel.com (sivswdev05.ir.intel.com\n\t[10.243.17.64])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\twBLB9KVQ019014; Fri, 21 Dec 2018 11:09:20 GMT",
            "from sivswdev05.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev05.ir.intel.com with ESMTP id wBLB9Kao028347;\n\tFri, 21 Dec 2018 11:09:20 GMT",
            "(from aburakov@localhost)\n\tby sivswdev05.ir.intel.com with LOCAL id wBLB9JCk028343;\n\tFri, 21 Dec 2018 11:09:20 GMT"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.56,381,1539673200\"; d=\"scan'208\";a=\"129724423\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, stephen@networkplumber.org",
        "Date": "Fri, 21 Dec 2018 11:09:14 +0000",
        "Message-Id": "<b8e9f484aacd5361331bf0d1d90ae4f44c715915.1545390524.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": [
            "<c822e5e21620d0fa4b2930d9e89bce44e80eac73.1545390524.git.anatoly.burakov@intel.com>",
            "<c822e5e21620d0fa4b2930d9e89bce44e80eac73.1545390524.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "<c822e5e21620d0fa4b2930d9e89bce44e80eac73.1545390524.git.anatoly.burakov@intel.com>",
            "<c822e5e21620d0fa4b2930d9e89bce44e80eac73.1545390524.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH 3/4] test/extmem: check if memseg list is external",
        "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": "Extend the extmem autotest to check whether the memseg lists for\nexternally allocated memory are always marked as external.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n test/test/test_external_mem.c | 11 ++++++++++-\n 1 file changed, 10 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/test/test/test_external_mem.c b/test/test/test_external_mem.c\nindex 845c625d6..5557f6e3f 100644\n--- a/test/test/test_external_mem.c\n+++ b/test/test/test_external_mem.c\n@@ -13,6 +13,7 @@\n #include <rte_common.h>\n #include <rte_debug.h>\n #include <rte_eal.h>\n+#include <rte_eal_memconfig.h>\n #include <rte_errno.h>\n #include <rte_malloc.h>\n #include <rte_ring.h>\n@@ -29,10 +30,18 @@ check_mem(void *addr, rte_iova_t *iova, size_t pgsz, int n_pages)\n \n \t/* check that we can get this memory from EAL now */\n \tfor (i = 0; i < n_pages; i++) {\n+\t\tconst struct rte_memseg_list *msl;\n \t\tconst struct rte_memseg *ms;\n \t\tvoid *cur = RTE_PTR_ADD(addr, pgsz * i);\n \n-\t\tms = rte_mem_virt2memseg(cur, NULL);\n+\t\tmsl = rte_mem_virt2memseg_list(cur);\n+\t\tif (!msl->external) {\n+\t\t\tprintf(\"%s():%i: Memseg list is not marked as external\\n\",\n+\t\t\t\t__func__, __LINE__);\n+\t\t\treturn -1;\n+\t\t}\n+\n+\t\tms = rte_mem_virt2memseg(cur, msl);\n \t\tif (ms == NULL) {\n \t\t\tprintf(\"%s():%i: Failed to retrieve memseg for external mem\\n\",\n \t\t\t\t__func__, __LINE__);\n",
    "prefixes": [
        "3/4"
    ]
}