Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/483/?format=api
https://patches.dpdk.org/api/patches/483/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1411579576-21786-9-git-send-email-alan.carew@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": "<1411579576-21786-9-git-send-email-alan.carew@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1411579576-21786-9-git-send-email-alan.carew@intel.com", "date": "2014-09-24T17:26:14", "name": "[dpdk-dev,v2,08/10] Packet format for VM Power Management(Host and Guest).", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "6f7b6591707323ce8028d2c78b17a44485450312", "submitter": { "id": 72, "url": "https://patches.dpdk.org/api/people/72/?format=api", "name": "Alan Carew", "email": "alan.carew@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1411579576-21786-9-git-send-email-alan.carew@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/483/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/483/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 DD544B3C1;\n\tWed, 24 Sep 2014 19:20:38 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id E18A3B3AD\n\tfor <dev@dpdk.org>; Wed, 24 Sep 2014 19:20:32 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga102.fm.intel.com with ESMTP; 24 Sep 2014 10:26:46 -0700", "from sie-lab-212-143.ir.intel.com (HELO\n\tsilpixa00385294.ir.intel.com) ([10.237.212.143])\n\tby fmsmga001.fm.intel.com with ESMTP; 24 Sep 2014 10:26:45 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.04,590,1406617200\"; d=\"scan'208\";a=\"596286427\"", "From": "Alan Carew <alan.carew@intel.com>", "To": "dev@dpdk.org", "Date": "Wed, 24 Sep 2014 18:26:14 +0100", "Message-Id": "<1411579576-21786-9-git-send-email-alan.carew@intel.com>", "X-Mailer": "git-send-email 1.9.3", "In-Reply-To": "<1411579576-21786-1-git-send-email-alan.carew@intel.com>", "References": "<1411410879-28872-1-git-send-email-alan.carew@intel.com>\n\t<1411579576-21786-1-git-send-email-alan.carew@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 08/10] Packet format for VM Power\n\tManagement(Host and Guest).", "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": "Provides a command packet format for host and guest.\n\nSigned-off-by: Alan Carew <alan.carew@intel.com>\n---\n lib/librte_power/channel_commands.h | 68 +++++++++++++++++++++++++++++++++++++\n 1 file changed, 68 insertions(+)\n create mode 100644 lib/librte_power/channel_commands.h", "diff": "diff --git a/lib/librte_power/channel_commands.h b/lib/librte_power/channel_commands.h\nnew file mode 100644\nindex 0000000..e33e85b\n--- /dev/null\n+++ b/lib/librte_power/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 with VM Power Management\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": [ "dpdk-dev", "v2", "08/10" ] }{ "id": 483, "url": "