get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 8029,
    "url": "http://patches.dpdk.org/api/patches/8029/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1445877458-31052-12-git-send-email-viktorin@rehivetech.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": "<1445877458-31052-12-git-send-email-viktorin@rehivetech.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445877458-31052-12-git-send-email-viktorin@rehivetech.com",
    "date": "2015-10-26T16:37:33",
    "name": "[dpdk-dev,v2,11/16] eal/arm: detect arm architecture in cpu flags",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5f3569ff639fdf998b67b8339f4ca1e17cf44037",
    "submitter": {
        "id": 292,
        "url": "http://patches.dpdk.org/api/people/292/?format=api",
        "name": "Jan Viktorin",
        "email": "viktorin@rehivetech.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1445877458-31052-12-git-send-email-viktorin@rehivetech.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/8029/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/8029/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 9C8FA8E8C;\n\tMon, 26 Oct 2015 17:39:44 +0100 (CET)",
            "from wes1-so1.wedos.net (wes1-so1.wedos.net [46.28.106.15])\n\tby dpdk.org (Postfix) with ESMTP id A7A678D8C\n\tfor <dev@dpdk.org>; Mon, 26 Oct 2015 17:39:31 +0100 (CET)",
            "from pcviktorin.fit.vutbr.cz (pcviktorin.fit.vutbr.cz\n\t[147.229.13.147])\n\tby wes1-so1.wedos.net (Postfix) with ESMTPSA id 3nl21v2fbLz5GS;\n\tMon, 26 Oct 2015 17:39:31 +0100 (CET)"
        ],
        "From": "Jan Viktorin <viktorin@rehivetech.com>",
        "To": "Thomas Monjalon <thomas.monjalon@6wind.com>,\n\tDavid Hunt <david.hunt@intel.com>, dev@dpdk.org",
        "Date": "Mon, 26 Oct 2015 17:37:33 +0100",
        "Message-Id": "<1445877458-31052-12-git-send-email-viktorin@rehivetech.com>",
        "X-Mailer": "git-send-email 2.6.1",
        "In-Reply-To": "<1445877458-31052-1-git-send-email-viktorin@rehivetech.com>",
        "References": "<1445877458-31052-1-git-send-email-viktorin@rehivetech.com>",
        "Subject": "[dpdk-dev] [PATCH v2 11/16] eal/arm: detect arm architecture in cpu\n\tflags",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://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": "<http://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": "Based on the patch by David Hunt and Armuta Zende:\n\n  lib: added support for armv7 architecture\n\nSigned-off-by: Jan Viktorin <viktorin@rehivetech.com>\nSigned-off-by: Amruta Zende <amruta.zende@intel.com>\nSigned-off-by: David Hunt <david.hunt@intel.com>\n---\n lib/librte_eal/common/include/arch/arm/rte_cpuflags.h | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h b/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h\nindex 1eadb33..17e13fc 100644\n--- a/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h\n+++ b/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h\n@@ -52,10 +52,15 @@ extern \"C\" {\n #define AT_HWCAP2 26\n #endif\n \n+#ifndef AT_PLATFORM\n+#define AT_PLATFORM 15\n+#endif\n+\n /* software based registers */\n enum cpu_register_t {\n \tREG_HWCAP = 0,\n \tREG_HWCAP2,\n+\tREG_PLATFORM,\n };\n \n /**\n@@ -89,6 +94,8 @@ enum rte_cpu_flag_t {\n \tRTE_CPUFLAG_SHA1,\n \tRTE_CPUFLAG_SHA2,\n \tRTE_CPUFLAG_CRC32,\n+\tRTE_CPUFLAG_AARCH32,\n+\tRTE_CPUFLAG_AARCH64,\n \t/* The last item */\n \tRTE_CPUFLAG_NUMFLAGS,/**< This should always be the last! */\n };\n@@ -121,6 +128,8 @@ static const struct feature_entry cpu_feature_table[] = {\n \tFEAT_DEF(SHA1,      0x00000001, 0, REG_HWCAP2,  2)\n \tFEAT_DEF(SHA2,      0x00000001, 0, REG_HWCAP2,  3)\n \tFEAT_DEF(CRC32,     0x00000001, 0, REG_HWCAP2,  4)\n+\tFEAT_DEF(AARCH32,   0x00000001, 0, REG_PLATFORM, 0)\n+\tFEAT_DEF(AARCH64,   0x00000001, 0, REG_PLATFORM, 1)\n };\n \n /*\n@@ -141,6 +150,12 @@ rte_cpu_get_features(__attribute__((unused)) uint32_t leaf,\n \t\t\tout[REG_HWCAP] = auxv.a_un.a_val;\n \t\telse if (auxv.a_type == AT_HWCAP2)\n \t\t\tout[REG_HWCAP2] = auxv.a_un.a_val;\n+\t\telse if (auxv.a_type == AT_PLATFORM) {\n+\t\t\tif (!strcmp((const char *)auxv.a_un.a_val, \"aarch32\"))\n+\t\t\t\tout[REG_PLATFORM] = 0x0001;\n+\t\t\telse if (!strcmp((const char *)auxv.a_un.a_val, \"aarch64\"))\n+\t\t\t\tout[REG_PLATFORM] = 0x0002;\n+\t\t}\n \t}\n }\n \n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "11/16"
    ]
}