Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/29551/?format=api
https://patches.dpdk.org/api/patches/29551/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1507039737-170942-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": "<1507039737-170942-3-git-send-email-david.hunt@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1507039737-170942-3-git-send-email-david.hunt@intel.com", "date": "2017-10-03T14:08:50", "name": "[dpdk-dev,v3,2/9] lib/librte_power: add extra msg type for policies", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "9eba32722298b16858fb8d1259e662cf3e2f50bf", "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/1507039737-170942-3-git-send-email-david.hunt@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/29551/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/29551/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 AA1241B3AC;\n\tTue, 3 Oct 2017 16:46:41 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 912DF1B3A1\n\tfor <dev@dpdk.org>; Tue, 3 Oct 2017 16:46:40 +0200 (CEST)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga105.jf.intel.com with ESMTP; 03 Oct 2017 07:46:39 -0700", "from silpixa00397898.ir.intel.com (HELO\n\tsilpixa00397898.ger.corp.intel.com) ([10.237.223.116])\n\tby orsmga003.jf.intel.com with ESMTP; 03 Oct 2017 07:46:37 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos; i=\"5.42,474,1500966000\"; d=\"scan'208\";\n\ta=\"1021087102\"", "From": "David Hunt <david.hunt@intel.com>", "To": "dev@dpdk.org", "Cc": "konstantin.ananyev@intel.com, jingjing.wu@intel.com,\n\tDavid Hunt <david.hunt@intel.com>,\n\tNemanja Marjanovic <nemanja.marjanovic@intel.com>,\n\tRory Sexton <rory.sexton@intel.com>", "Date": "Tue, 3 Oct 2017 15:08:50 +0100", "Message-Id": "<1507039737-170942-3-git-send-email-david.hunt@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1507039737-170942-1-git-send-email-david.hunt@intel.com>", "References": "<1505299459-24135-2-git-send-email-david.hunt@intel.com>\n\t<1507039737-170942-1-git-send-email-david.hunt@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 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 | 52 +++++++++++++++++++++++++++++++++++++\n 1 file changed, 52 insertions(+)", "diff": "diff --git a/lib/librte_power/channel_commands.h b/lib/librte_power/channel_commands.h\nindex 484085b..1599706 100644\n--- a/lib/librte_power/channel_commands.h\n+++ b/lib/librte_power/channel_commands.h\n@@ -46,6 +46,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 +55,62 @@ 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+#ifdef RTE_LIBRTE_I40E_PMD\n+#define MAX_VFS 10\n+#endif\n+\n+#define MAX_VCPU_PER_VM 8\n+\n+typedef enum {false, true} bool;\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+#ifdef RTE_LIBRTE_I40E_PMD\n+\tint hours_to_use_traffic_profile[HOURS];\n+#endif\n+};\n+\n+enum workload {HIGH, MEDIUM, LOW};\n+enum policy_to_use {\n+#ifdef RTE_LIBRTE_I40E_PMD\n+\tTRAFFIC,\n+#endif\n+\tTIME,\n+\tWORKLOAD\n+};\n+\n+#ifdef RTE_LIBRTE_I40E_PMD\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+#endif\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[32];\n+\n+#ifdef RTE_LIBRTE_I40E_PMD\n+\tuint64_t vfid[MAX_VFS];\n+\tint nb_mac_to_monitor;\n+\tstruct traffic traffic_policy;\n+#endif\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", "v3", "2/9" ] }{ "id": 29551, "url": "