get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7385,
    "url": "https://patches.dpdk.org/api/patches/7385/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/549a484f1ecc02ccba572e58112e2500edc5aad9.1443737626.git.viktorin@rehivetech.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": "<549a484f1ecc02ccba572e58112e2500edc5aad9.1443737626.git.viktorin@rehivetech.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/549a484f1ecc02ccba572e58112e2500edc5aad9.1443737626.git.viktorin@rehivetech.com",
    "date": "2015-10-03T08:58:09",
    "name": "[dpdk-dev,v1,03/12] eal/arm: byte order operations for ARM",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "25e5abfd26db39e878476cf16dfe1c46b685e6bd",
    "submitter": {
        "id": 292,
        "url": "https://patches.dpdk.org/api/people/292/?format=api",
        "name": "Jan Viktorin",
        "email": "viktorin@rehivetech.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/549a484f1ecc02ccba572e58112e2500edc5aad9.1443737626.git.viktorin@rehivetech.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7385/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7385/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 80F4C8E61;\n\tSat,  3 Oct 2015 10:58:53 +0200 (CEST)",
            "from we2-f167.wedos.net (w-smtp-out-7.wedos.net [46.28.106.5])\n\tby dpdk.org (Postfix) with ESMTP id 1AA1A8E61\n\tfor <dev@dpdk.org>; Sat,  3 Oct 2015 10:58:52 +0200 (CEST)",
            "from ([147.229.13.147])\n\tby we2-f167.wedos.net (WEDOS Mail Server mail2) with ASMTP (SSL) id\n\tQWJ00150; Sat, 03 Oct 2015 10:58:50 +0200"
        ],
        "From": "Jan Viktorin <viktorin@rehivetech.com>",
        "To": "dev@dpdk.org",
        "Date": "Sat,  3 Oct 2015 10:58:09 +0200",
        "Message-Id": "<549a484f1ecc02ccba572e58112e2500edc5aad9.1443737626.git.viktorin@rehivetech.com>",
        "X-Mailer": "git-send-email 2.6.0",
        "In-Reply-To": [
            "<cover.1443737626.git.viktorin@rehivetech.com>",
            "<cover.1443737626.git.viktorin@rehivetech.com>"
        ],
        "References": [
            "<cover.1443737626.git.viktorin@rehivetech.com>",
            "<cover.1443737626.git.viktorin@rehivetech.com>"
        ],
        "Cc": "Vlastimil Kosar <kosar@rehivetech.com>,\n\tJan Viktorin <viktorin@rehivetech.com>",
        "Subject": "[dpdk-dev] [PATCH v1 03/12] eal/arm: byte order operations for ARM",
        "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": "From: Vlastimil Kosar <kosar@rehivetech.com>\n\nThis patch adds architecture specific byte order operations\nfor ARM. The architecture supports both big and little endian.\n\nSigned-off-by: Vlastimil Kosar <kosar@rehivetech.com>\nSigned-off-by: Jan Viktorin <viktorin@rehivetech.com>\n---\n .../common/include/arch/arm/rte_byteorder.h        | 148 +++++++++++++++++++++\n 1 file changed, 148 insertions(+)\n create mode 100644 lib/librte_eal/common/include/arch/arm/rte_byteorder.h",
    "diff": "diff --git a/lib/librte_eal/common/include/arch/arm/rte_byteorder.h b/lib/librte_eal/common/include/arch/arm/rte_byteorder.h\nnew file mode 100644\nindex 0000000..04e7b87\n--- /dev/null\n+++ b/lib/librte_eal/common/include/arch/arm/rte_byteorder.h\n@@ -0,0 +1,148 @@\n+/*\n+ *   BSD LICENSE\n+ *\n+ *   Copyright(c) 2015 RehiveTech. All rights reserved.\n+ *\n+ *   Redistribution and use in source and binary forms, with or without\n+ *   modification, are permitted provided that the following conditions\n+ *   are met:\n+ *\n+ *     * Redistributions of source code must retain the above copyright\n+ *       notice, this list of conditions and the following disclaimer.\n+ *     * Redistributions in binary form must reproduce the above copyright\n+ *       notice, this list of conditions and the following disclaimer in\n+ *       the documentation and/or other materials provided with the\n+ *       distribution.\n+ *     * Neither the name of RehiveTech nor the names of its\n+ *       contributors may be used to endorse or promote products derived\n+ *       from this software without specific prior written permission.\n+ *\n+ *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ *   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+ *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+ *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+ *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+ *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+#ifndef _RTE_BYTEORDER_ARM_H_\n+#define _RTE_BYTEORDER_ARM_H_\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+#include \"generic/rte_byteorder.h\"\n+\n+/*\n+ * An architecture-optimized byte swap for a 16-bit value.\n+ *\n+ * Do not use this function directly. The preferred function is rte_bswap16().\n+ */\n+static inline uint16_t rte_arch_bswap16(uint16_t _x)\n+{\n+\tregister uint16_t x = _x;\n+\tasm volatile (\"rev16 %[x1],%[x2]\"\n+\t\t      : [x1] \"=r\" (x)\n+\t\t      : [x2] \"r\" (x)\n+\t\t      );\n+\treturn x;\n+}\n+\n+/*\n+ * An architecture-optimized byte swap for a 32-bit value.\n+ *\n+ * Do not use this function directly. The preferred function is rte_bswap32().\n+ */\n+static inline uint32_t rte_arch_bswap32(uint32_t _x)\n+{\n+\tregister uint32_t x = _x;\n+\tasm volatile (\"rev %[x1],%[x2]\"\n+\t\t      : [x1] \"=r\" (x)\n+\t\t      : [x2] \"r\" (x)\n+\t\t      );\n+\treturn x;\n+}\n+\n+/*\n+ * An architecture-optimized byte swap for a 64-bit value.\n+ *\n+  * Do not use this function directly. The preferred function is rte_bswap64().\n+ */\n+/* 64-bit mode */\n+static inline uint64_t rte_arch_bswap64(uint64_t _x)\n+{\n+\treturn  __builtin_bswap64(_x);\n+}\n+\n+#ifndef RTE_FORCE_INTRINSICS\n+#define rte_bswap16(x) ((uint16_t)(__builtin_constant_p(x) ?\t\t\\\n+\t\t\t\t   rte_constant_bswap16(x) :\t\t\\\n+\t\t\t\t   rte_arch_bswap16(x)))\n+\n+#define rte_bswap32(x) ((uint32_t)(__builtin_constant_p(x) ?\t\t\\\n+\t\t\t\t   rte_constant_bswap32(x) :\t\t\\\n+\t\t\t\t   rte_arch_bswap32(x)))\n+\n+#define rte_bswap64(x) ((uint64_t)(__builtin_constant_p(x) ?\t\t\\\n+\t\t\t\t   rte_constant_bswap64(x) :\t\t\\\n+\t\t\t\t   rte_arch_bswap64(x)))\n+#else\n+/*\n+ * __builtin_bswap16 is only available gcc 4.8 and upwards\n+ */\n+#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)\n+#define rte_bswap16(x) ((uint16_t)(__builtin_constant_p(x) ?\t\t\\\n+\t\t\t\t   rte_constant_bswap16(x) :\t\t\\\n+\t\t\t\t   rte_arch_bswap16(x)))\n+#endif\n+#endif\n+\n+/* ARM architecture is bi-endian (both big and little). */\n+#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN\n+\n+#define rte_cpu_to_le_16(x) (x)\n+#define rte_cpu_to_le_32(x) (x)\n+#define rte_cpu_to_le_64(x) (x)\n+\n+#define rte_cpu_to_be_16(x) rte_bswap16(x)\n+#define rte_cpu_to_be_32(x) rte_bswap32(x)\n+#define rte_cpu_to_be_64(x) rte_bswap64(x)\n+\n+#define rte_le_to_cpu_16(x) (x)\n+#define rte_le_to_cpu_32(x) (x)\n+#define rte_le_to_cpu_64(x) (x)\n+\n+#define rte_be_to_cpu_16(x) rte_bswap16(x)\n+#define rte_be_to_cpu_32(x) rte_bswap32(x)\n+#define rte_be_to_cpu_64(x) rte_bswap64(x)\n+\n+#else /* RTE_BIG_ENDIAN */\n+\n+#define rte_cpu_to_le_16(x) rte_bswap16(x)\n+#define rte_cpu_to_le_32(x) rte_bswap32(x)\n+#define rte_cpu_to_le_64(x) rte_bswap64(x)\n+\n+#define rte_cpu_to_be_16(x) (x)\n+#define rte_cpu_to_be_32(x) (x)\n+#define rte_cpu_to_be_64(x) (x)\n+\n+#define rte_le_to_cpu_16(x) rte_bswap16(x)\n+#define rte_le_to_cpu_32(x) rte_bswap32(x)\n+#define rte_le_to_cpu_64(x) rte_bswap64(x)\n+\n+#define rte_be_to_cpu_16(x) (x)\n+#define rte_be_to_cpu_32(x) (x)\n+#define rte_be_to_cpu_64(x) (x)\n+#endif\n+\n+#ifdef __cplusplus\n+}\n+#endif\n+\n+#endif /* _RTE_BYTEORDER_ARM_H_ */\n",
    "prefixes": [
        "dpdk-dev",
        "v1",
        "03/12"
    ]
}