Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/29733/?format=api
https://patches.dpdk.org/api/patches/29733/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1507210100-69917-3-git-send-email-david.hunt@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": "<1507210100-69917-3-git-send-email-david.hunt@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1507210100-69917-3-git-send-email-david.hunt@intel.com", "date": "2017-10-05T13:28:13", "name": "[dpdk-dev,v7,2/9] lib/librte_power: add extra msg type for policies", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "75cd79362fffef46d784ff0f8724b5b4d583991c", "submitter": { "id": 342, "url": "https://patches.dpdk.org/api/people/342/?format=api", "name": "Hunt, David", "email": "david.hunt@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1507210100-69917-3-git-send-email-david.hunt@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/29733/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/29733/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 C18831B21A;\n\tThu, 5 Oct 2017 15:28:32 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id A84BB1B248\n\tfor <dev@dpdk.org>; Thu, 5 Oct 2017 15:28:29 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t05 Oct 2017 06:28:29 -0700", "from silpixa00397898.ir.intel.com ([10.237.223.116])\n\tby orsmga004.jf.intel.com with ESMTP; 05 Oct 2017 06:28:27 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.42,481,1500966000\"; d=\"scan'208\";a=\"135515406\"", "From": "David Hunt <david.hunt@intel.com>", "To": "dev@dpdk.org", "Cc": "konstantin.ananyev@intel.com, jingjing.wu@intel.com,\n\tsantosh.shukla@caviumnetworks.com, David Hunt <david.hunt@intel.com>, \n\tNemanja Marjanovic <nemanja.marjanovic@intel.com>,\n\tRory Sexton <rory.sexton@intel.com>", "Date": "Thu, 5 Oct 2017 14:28:13 +0100", "Message-Id": "<1507210100-69917-3-git-send-email-david.hunt@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1507210100-69917-1-git-send-email-david.hunt@intel.com>", "References": "<1507206350-215367-1-git-send-email-david.hunt@intel.com>\n\t<1507210100-69917-1-git-send-email-david.hunt@intel.com>", "Subject": "[dpdk-dev] [PATCH v7 2/9] lib/librte_power: add extra msg type for\n\tpolicies", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <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": "Signed-off-by: Nemanja Marjanovic <nemanja.marjanovic@intel.com>\nSigned-off-by: Rory Sexton <rory.sexton@intel.com>\nSigned-off-by: David Hunt <david.hunt@intel.com>\n---\n lib/librte_power/channel_commands.h | 42 +++++++++++++++++++++++++++++++++++++\n 1 file changed, 42 insertions(+)", "diff": "diff --git a/lib/librte_power/channel_commands.h b/lib/librte_power/channel_commands.h\nindex 484085b..f0f5f0a 100644\n--- a/lib/librte_power/channel_commands.h\n+++ b/lib/librte_power/channel_commands.h\n@@ -39,6 +39,7 @@ extern \"C\" {\n #endif\n \n #include <stdint.h>\n+#include <stdbool.h>\n \n /* Maximum number of channels per VM */\n #define CHANNEL_CMDS_MAX_VM_CHANNELS 64\n@@ -46,6 +47,7 @@ extern \"C\" {\n /* Valid Commands */\n #define CPU_POWER 1\n #define CPU_POWER_CONNECT 2\n+#define PKT_POLICY 3\n \n /* CPU Power Command Scaling */\n #define CPU_POWER_SCALE_UP 1\n@@ -54,11 +56,51 @@ extern \"C\" {\n #define CPU_POWER_SCALE_MIN 4\n #define CPU_POWER_ENABLE_TURBO 5\n #define CPU_POWER_DISABLE_TURBO 6\n+#define HOURS 24\n+\n+#define MAX_VFS 10\n+#define VM_MAX_NAME_SZ 32\n+\n+#define MAX_VCPU_PER_VM 8\n+\n+struct t_boost_status {\n+\tbool tbEnabled;\n+};\n+\n+struct timer_profile {\n+\tint busy_hours[HOURS];\n+\tint quiet_hours[HOURS];\n+\tint hours_to_use_traffic_profile[HOURS];\n+};\n+\n+enum workload {HIGH, MEDIUM, LOW};\n+enum policy_to_use {\n+\tTRAFFIC,\n+\tTIME,\n+\tWORKLOAD\n+};\n+\n+struct traffic {\n+\tuint32_t min_packet_thresh;\n+\tuint32_t avg_max_packet_thresh;\n+\tuint32_t max_max_packet_thresh;\n+};\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+\tchar vm_name[VM_MAX_NAME_SZ];\n+\n+\tuint64_t vfid[MAX_VFS];\n+\tint nb_mac_to_monitor;\n+\tstruct traffic traffic_policy;\n+\tuint8_t vcpu_to_control[MAX_VCPU_PER_VM];\n+\tuint8_t num_vcpu;\n+\tstruct timer_profile timer_policy;\n+\tenum workload workload;\n+\tenum policy_to_use policy_to_use;\n+\tstruct t_boost_status t_boost_status;\n };\n \n \n", "prefixes": [ "dpdk-dev", "v7", "2/9" ] }{ "id": 29733, "url": "