Show a patch.

GET /api/patches/445/
Content-Type: application/json
Vary: Accept

    "id": 445,
    "url": "",
    "web_url": "",
    "project": {
        "id": 1,
        "url": "",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "",
        "list_email": "",
        "web_url": "",
        "scm_url": "git://",
        "webscm_url": ""
    "msgid": "<>",
    "date": "2014-09-22T18:34:36",
    "name": "[dpdk-dev,07/10] Packet format for VM Power Management(Host and Guest).",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2cb66aaa443c6475231d47b5e8666013952116d0",
    "submitter": {
        "id": 72,
        "url": "",
        "name": "Alan Carew",
        "email": ""
    "delegate": null,
    "mbox": "",
    "series": [],
    "comments": "",
    "check": "pending",
    "checks": "",
    "tags": {},
    "headers": {
        "Return-Path": "<>",
        "References": "<>",
        "X-Mailman-Version": "2.1.15",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,573,1406617200\"; d=\"scan'208\";a=\"606714528\"",
        "Date": "Mon, 22 Sep 2014 19:34:36 +0100",
        "List-Help": "<>",
        "X-BeenThere": "",
        "Message-Id": "<>",
        "X-Original-To": "",
        "Received": [
            "from [] (localhost [IPv6:::1])\n\tby (Postfix) with ESMTP id BD2ECB3BE;\n\tMon, 22 Sep 2014 20:29:46 +0200 (CEST)",
            "from ( [])\n\tby (Postfix) with ESMTP id CDC4B333\n\tfor <>; Mon, 22 Sep 2014 20:29:39 +0200 (CEST)",
            "from ([])\n\tby with ESMTP; 22 Sep 2014 11:35:27 -0700",
            "from (HELO\n\ ([])\n\tby with ESMTP; 22 Sep 2014 11:35:26 -0700"
        "List-Post": "<>",
        "Subject": "[dpdk-dev] [PATCH 07/10] Packet format for VM Power Management(Host\n\tand Guest).",
        "Sender": "\"dev\" <>",
        "X-Mailer": "git-send-email 1.9.3",
        "Precedence": "list",
        "From": "Alan Carew <>",
        "List-Archive": "<>",
        "X-ExtLoop1": "1",
        "List-Subscribe": "<>,\n\t<>",
        "List-Id": "patches and discussions about DPDK <>",
        "Delivered-To": "",
        "In-Reply-To": "<>",
        "List-Unsubscribe": "<>,\n\t<>",
        "To": "",
        "Errors-To": ""
    "content": "Provides a command packet format for host and guest.\n\nSigned-off-by: Alan Carew <>\n---\n lib/librte_power_vm/channel_commands.h | 68 ++++++++++++++++++++++++++++++++++\n 1 file changed, 68 insertions(+)\n create mode 100644 lib/librte_power_vm/channel_commands.h",
    "diff": "diff --git a/lib/librte_power_vm/channel_commands.h b/lib/librte_power_vm/channel_commands.h\nnew file mode 100644\nindex 0000000..4ad65cf\n--- /dev/null\n+++ b/lib/librte_power_vm/channel_commands.h\n@@ -0,0 +1,68 @@\n+/*-\n+ *   BSD LICENSE\n+ *\n+ *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.\n+ *   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 Intel Corporation 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 CHANNEL_COMMANDS_H_\n+#define CHANNEL_COMMANDS_H_\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+#include <stdint.h>\n+#include <rte_config.h>\n+\n+#if RTE_MAX_LCORE > 64\n+#error Maximum number of cores and channels is 64, overflow is guaranteed to \\\n+\tcause problems.\n+#endif\n+\n+#define CPU_POWER         1\n+#define CPU_POWER_CONNECT 2\n+\n+#define CPU_SCALE_UP      1\n+#define CPU_SCALE_DOWN    2\n+#define CPU_SCALE_MAX     3\n+#define CPU_SCALE_MIN     4\n+\n+struct channel_packet {\n+\tuint64_t resource_id; /* core_num, device */\n+\tuint32_t unit; /* scale down/up/min/max */\n+\tuint32_t command; /* Power, IO, etc */\n+};\n+\n+\n+#ifdef __cplusplus\n+}\n+#endif\n+\n+#endif /* CHANNEL_COMMANDS_H_ */\n",
    "prefixes": [