get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87039,
    "url": "https://patches.dpdk.org/api/patches/87039/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210121172201.22582-5-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": "<20210121172201.22582-5-david.hunt@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210121172201.22582-5-david.hunt@intel.com",
    "date": "2021-01-21T17:21:59",
    "name": "[v4,4/6] power: rename defines",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0fd593f04c265a7b42a87e2e955e06109936bb02",
    "submitter": {
        "id": 342,
        "url": "https://patches.dpdk.org/api/people/342/?format=api",
        "name": "Hunt, David",
        "email": "david.hunt@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210121172201.22582-5-david.hunt@intel.com/mbox/",
    "series": [
        {
            "id": 14890,
            "url": "https://patches.dpdk.org/api/series/14890/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14890",
            "date": "2021-01-21T17:21:55",
            "name": "power: fix make build for power apps",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/14890/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/87039/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/87039/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 739ACA09E4;\n\tThu, 21 Jan 2021 18:23:28 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D83E8140DBD;\n\tThu, 21 Jan 2021 18:23:04 +0100 (CET)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 64975140D90;\n Thu, 21 Jan 2021 18:22:55 +0100 (CET)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Jan 2021 09:22:54 -0800",
            "from silpixa00399952.ir.intel.com (HELO\n silpixa00399952.ger.corp.intel.com) ([10.237.222.38])\n by orsmga008.jf.intel.com with ESMTP; 21 Jan 2021 09:22:53 -0800"
        ],
        "IronPort-SDR": [
            "\n D8Bvaw2Q37ubOZM6hFFnmpatk7k/rO3X7v181/anLtSUrS1R8Vv3S+mXm+eXUyi0Seti4J6tFy\n CUQC7bKPeH5A==",
            "\n NyYgcaQ2j/vs1kSjWw7rDYfGOyC87YwrAXZvWIfKHa2GcR8ad6VmY2y88l7vwpRgHqUO+KryS4\n Vi8QezS2zMRw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9871\"; a=\"175799681\"",
            "E=Sophos;i=\"5.79,364,1602572400\"; d=\"scan'208\";a=\"175799681\"",
            "E=Sophos;i=\"5.79,364,1602572400\"; d=\"scan'208\";a=\"385386759\""
        ],
        "X-ExtLoop1": "1",
        "From": "David Hunt <david.hunt@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "david.hunt@intel.com, stable@dpdk.org,\n Bruce Richardson <bruce.richardson@intel.com>",
        "Date": "Thu, 21 Jan 2021 17:21:59 +0000",
        "Message-Id": "<20210121172201.22582-5-david.hunt@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210121172201.22582-1-david.hunt@intel.com>",
        "References": "<20210120135556.33763-2-david.hunt@intel.com>\n <20210121172201.22582-1-david.hunt@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v4 4/6] power: rename defines",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Bruce Richardson <bruce.richardson@intel.com>\n\nRename the #defines to have an RTE_POWER_ prefix\n\nFixes: 210c383e247b (\"power: packet format for vm power management\")\nFixes: cd0d5547e873 (\"power: vm communication channels in guest\")\nCc: stable@dpdk.org\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\nSigned-off-by: David Hunt <david.hunt@intel.com>\n---\n examples/vm_power_manager/channel_monitor.c   | 116 +++++++++---------\n examples/vm_power_manager/channel_monitor.h   |   6 +-\n examples/vm_power_manager/guest_cli/main.c    |  29 +++--\n .../guest_cli/vm_power_cli_guest.c            |  28 ++---\n examples/vm_power_manager/main.c              |   2 +-\n lib/librte_power/guest_channel.c              |   2 +-\n lib/librte_power/power_kvm_vm.c               |  14 +--\n lib/librte_power/rte_power_guest_channel.h    |  98 +++++++--------\n 8 files changed, 155 insertions(+), 140 deletions(-)",
    "diff": "diff --git a/examples/vm_power_manager/channel_monitor.c b/examples/vm_power_manager/channel_monitor.c\nindex 1b6041b6f..7bb33e026 100644\n--- a/examples/vm_power_manager/channel_monitor.c\n+++ b/examples/vm_power_manager/channel_monitor.c\n@@ -177,10 +177,10 @@ parse_json_to_pkt(json_t *element, struct rte_power_channel_packet *pkt,\n \n \tpkt->nb_mac_to_monitor = 0;\n \tpkt->t_boost_status.tbEnabled = false;\n-\tpkt->workload = LOW;\n-\tpkt->policy_to_use = TIME;\n-\tpkt->command = PKT_POLICY;\n-\tpkt->core_type = CORE_TYPE_PHYSICAL;\n+\tpkt->workload = RTE_POWER_WL_LOW;\n+\tpkt->policy_to_use = RTE_POWER_POLICY_TIME;\n+\tpkt->command = RTE_POWER_PKT_POLICY;\n+\tpkt->core_type = RTE_POWER_CORE_TYPE_PHYSICAL;\n \n \tif (vm_name == NULL) {\n \t\tRTE_LOG(ERR, CHANNEL_MONITOR,\n@@ -203,11 +203,11 @@ parse_json_to_pkt(json_t *element, struct rte_power_channel_packet *pkt,\n \t\t\tchar command[32];\n \t\t\tstrlcpy(command, json_string_value(value), 32);\n \t\t\tif (!strcmp(command, \"power\")) {\n-\t\t\t\tpkt->command = CPU_POWER;\n+\t\t\t\tpkt->command = RTE_POWER_CPU_POWER;\n \t\t\t} else if (!strcmp(command, \"create\")) {\n-\t\t\t\tpkt->command = PKT_POLICY;\n+\t\t\t\tpkt->command = RTE_POWER_PKT_POLICY;\n \t\t\t} else if (!strcmp(command, \"destroy\")) {\n-\t\t\t\tpkt->command = PKT_POLICY_REMOVE;\n+\t\t\t\tpkt->command = RTE_POWER_PKT_POLICY_REMOVE;\n \t\t\t} else {\n \t\t\t\tRTE_LOG(ERR, CHANNEL_MONITOR,\n \t\t\t\t\t\"Invalid command received in JSON\\n\");\n@@ -217,13 +217,17 @@ parse_json_to_pkt(json_t *element, struct rte_power_channel_packet *pkt,\n \t\t\tchar command[32];\n \t\t\tstrlcpy(command, json_string_value(value), 32);\n \t\t\tif (!strcmp(command, \"TIME\")) {\n-\t\t\t\tpkt->policy_to_use = TIME;\n+\t\t\t\tpkt->policy_to_use =\n+\t\t\t\t\t\tRTE_POWER_POLICY_TIME;\n \t\t\t} else if (!strcmp(command, \"TRAFFIC\")) {\n-\t\t\t\tpkt->policy_to_use = TRAFFIC;\n+\t\t\t\tpkt->policy_to_use =\n+\t\t\t\t\t\tRTE_POWER_POLICY_TRAFFIC;\n \t\t\t} else if (!strcmp(command, \"WORKLOAD\")) {\n-\t\t\t\tpkt->policy_to_use = WORKLOAD;\n+\t\t\t\tpkt->policy_to_use =\n+\t\t\t\t\t\tRTE_POWER_POLICY_WORKLOAD;\n \t\t\t} else if (!strcmp(command, \"BRANCH_RATIO\")) {\n-\t\t\t\tpkt->policy_to_use = BRANCH_RATIO;\n+\t\t\t\tpkt->policy_to_use =\n+\t\t\t\t\t\tRTE_POWER_POLICY_BRANCH_RATIO;\n \t\t\t} else {\n \t\t\t\tRTE_LOG(ERR, CHANNEL_MONITOR,\n \t\t\t\t\t\"Wrong policy_type received in JSON\\n\");\n@@ -233,11 +237,11 @@ parse_json_to_pkt(json_t *element, struct rte_power_channel_packet *pkt,\n \t\t\tchar command[32];\n \t\t\tstrlcpy(command, json_string_value(value), 32);\n \t\t\tif (!strcmp(command, \"HIGH\")) {\n-\t\t\t\tpkt->workload = HIGH;\n+\t\t\t\tpkt->workload = RTE_POWER_WL_HIGH;\n \t\t\t} else if (!strcmp(command, \"MEDIUM\")) {\n-\t\t\t\tpkt->workload = MEDIUM;\n+\t\t\t\tpkt->workload = RTE_POWER_WL_MEDIUM;\n \t\t\t} else if (!strcmp(command, \"LOW\")) {\n-\t\t\t\tpkt->workload = LOW;\n+\t\t\t\tpkt->workload = RTE_POWER_WL_LOW;\n \t\t\t} else {\n \t\t\t\tRTE_LOG(ERR, CHANNEL_MONITOR,\n \t\t\t\t\t\"Wrong workload received in JSON\\n\");\n@@ -283,17 +287,17 @@ parse_json_to_pkt(json_t *element, struct rte_power_channel_packet *pkt,\n \t\t\tchar unit[32];\n \t\t\tstrlcpy(unit, json_string_value(value), 32);\n \t\t\tif (!strcmp(unit, \"SCALE_UP\")) {\n-\t\t\t\tpkt->unit = CPU_POWER_SCALE_UP;\n+\t\t\t\tpkt->unit = RTE_POWER_SCALE_UP;\n \t\t\t} else if (!strcmp(unit, \"SCALE_DOWN\")) {\n-\t\t\t\tpkt->unit = CPU_POWER_SCALE_DOWN;\n+\t\t\t\tpkt->unit = RTE_POWER_SCALE_DOWN;\n \t\t\t} else if (!strcmp(unit, \"SCALE_MAX\")) {\n-\t\t\t\tpkt->unit = CPU_POWER_SCALE_MAX;\n+\t\t\t\tpkt->unit = RTE_POWER_SCALE_MAX;\n \t\t\t} else if (!strcmp(unit, \"SCALE_MIN\")) {\n-\t\t\t\tpkt->unit = CPU_POWER_SCALE_MIN;\n+\t\t\t\tpkt->unit = RTE_POWER_SCALE_MIN;\n \t\t\t} else if (!strcmp(unit, \"ENABLE_TURBO\")) {\n-\t\t\t\tpkt->unit = CPU_POWER_ENABLE_TURBO;\n+\t\t\t\tpkt->unit = RTE_POWER_ENABLE_TURBO;\n \t\t\t} else if (!strcmp(unit, \"DISABLE_TURBO\")) {\n-\t\t\t\tpkt->unit = CPU_POWER_DISABLE_TURBO;\n+\t\t\t\tpkt->unit = RTE_POWER_DISABLE_TURBO;\n \t\t\t} else {\n \t\t\t\tRTE_LOG(ERR, CHANNEL_MONITOR,\n \t\t\t\t\t\"Invalid command received in JSON\\n\");\n@@ -312,7 +316,7 @@ parse_json_to_pkt(json_t *element, struct rte_power_channel_packet *pkt,\n \t\t\t\tvm_name);\n \t\t\treturn -1;\n \t\t}\n-\t\tstrlcpy(pkt->vm_name, vm_name, VM_MAX_NAME_SZ);\n+\t\tstrlcpy(pkt->vm_name, vm_name, RTE_POWER_VM_MAX_NAME_SZ);\n \t\tpkt->resource_id = resource_id;\n \t}\n \treturn 0;\n@@ -367,7 +371,7 @@ pcpu_monitor(struct policy *pol, struct core_info *ci, int pcpu, int count)\n {\n \tint ret = 0;\n \n-\tif (pol->pkt.policy_to_use == BRANCH_RATIO) {\n+\tif (pol->pkt.policy_to_use == RTE_POWER_POLICY_BRANCH_RATIO) {\n \t\tci->cd[pcpu].oob_enabled = 1;\n \t\tret = add_core_to_monitor(pcpu);\n \t\tif (ret == 0)\n@@ -407,7 +411,7 @@ get_pcpu_to_control(struct policy *pol)\n \t * differenciate between them when adding them to the branch monitor.\n \t * Virtual cores need to be converted to physical cores.\n \t */\n-\tif (pol->pkt.core_type == CORE_TYPE_VIRTUAL) {\n+\tif (pol->pkt.core_type == RTE_POWER_CORE_TYPE_VIRTUAL) {\n \t\t/*\n \t\t * If the cores in the policy are virtual, we need to map them\n \t\t * to physical core. We look up the vm info and use that for\n@@ -479,7 +483,8 @@ update_policy(struct rte_power_channel_packet *pkt)\n \t\t\tpolicies[i].pkt = *pkt;\n \t\t\tget_pcpu_to_control(&policies[i]);\n \t\t\t/* Check Eth dev only for Traffic policy */\n-\t\t\tif (policies[i].pkt.policy_to_use == TRAFFIC) {\n+\t\t\tif (policies[i].pkt.policy_to_use ==\n+\t\t\t\t\tRTE_POWER_POLICY_TRAFFIC) {\n \t\t\t\tif (get_pfid(&policies[i]) < 0) {\n \t\t\t\t\tupdated = 1;\n \t\t\t\t\tbreak;\n@@ -496,7 +501,8 @@ update_policy(struct rte_power_channel_packet *pkt)\n \t\t\t\tpolicies[i].pkt = *pkt;\n \t\t\t\tget_pcpu_to_control(&policies[i]);\n \t\t\t\t/* Check Eth dev only for Traffic policy */\n-\t\t\t\tif (policies[i].pkt.policy_to_use == TRAFFIC) {\n+\t\t\t\tif (policies[i].pkt.policy_to_use ==\n+\t\t\t\t\t\tRTE_POWER_POLICY_TRAFFIC) {\n \t\t\t\t\tif (get_pfid(&policies[i]) < 0) {\n \t\t\t\t\t\tupdated = 1;\n \t\t\t\t\t\tbreak;\n@@ -615,7 +621,7 @@ apply_time_profile(struct policy *pol)\n \t/* Format the date and time, down to a single second. */\n \tstrftime(time_string, sizeof(time_string), \"%Y-%m-%d %H:%M:%S\", ptm);\n \n-\tfor (x = 0; x < HOURS; x++) {\n+\tfor (x = 0; x < RTE_POWER_HOURS_PER_DAY; x++) {\n \n \t\tif (ptm->tm_hour == pol->pkt.timer_policy.busy_hours[x]) {\n \t\t\tfor (count = 0; count < pol->pkt.num_vcpu; count++) {\n@@ -648,19 +654,19 @@ apply_workload_profile(struct policy *pol)\n \n \tint count;\n \n-\tif (pol->pkt.workload == HIGH) {\n+\tif (pol->pkt.workload == RTE_POWER_WL_HIGH) {\n \t\tfor (count = 0; count < pol->pkt.num_vcpu; count++) {\n \t\t\tif (pol->core_share[count].status != 1)\n \t\t\t\tpower_manager_scale_core_max(\n \t\t\t\t\t\tpol->core_share[count].pcpu);\n \t\t}\n-\t} else if (pol->pkt.workload == MEDIUM) {\n+\t} else if (pol->pkt.workload == RTE_POWER_WL_MEDIUM) {\n \t\tfor (count = 0; count < pol->pkt.num_vcpu; count++) {\n \t\t\tif (pol->core_share[count].status != 1)\n \t\t\t\tpower_manager_scale_core_med(\n \t\t\t\t\t\tpol->core_share[count].pcpu);\n \t\t}\n-\t} else if (pol->pkt.workload == LOW) {\n+\t} else if (pol->pkt.workload == RTE_POWER_WL_LOW) {\n \t\tfor (count = 0; count < pol->pkt.num_vcpu; count++) {\n \t\t\tif (pol->core_share[count].status != 1)\n \t\t\t\tpower_manager_scale_core_min(\n@@ -676,11 +682,11 @@ apply_policy(struct policy *pol)\n \tstruct rte_power_channel_packet *pkt = &pol->pkt;\n \n \t/*Check policy to use*/\n-\tif (pkt->policy_to_use == TRAFFIC)\n+\tif (pkt->policy_to_use == RTE_POWER_POLICY_TRAFFIC)\n \t\tapply_traffic_profile(pol);\n-\telse if (pkt->policy_to_use == TIME)\n+\telse if (pkt->policy_to_use == RTE_POWER_POLICY_TIME)\n \t\tapply_time_profile(pol);\n-\telse if (pkt->policy_to_use == WORKLOAD)\n+\telse if (pkt->policy_to_use == RTE_POWER_POLICY_WORKLOAD)\n \t\tapply_workload_profile(pol);\n }\n \n@@ -726,13 +732,13 @@ send_freq(struct rte_power_channel_packet *pkt,\n \tif (get_info_vm(pkt->vm_name, &info) != 0)\n \t\treturn -1;\n \n-\tif (!freq_list && vcore_id >= MAX_VCPU_PER_VM)\n+\tif (!freq_list && vcore_id >= RTE_POWER_MAX_VCPU_PER_VM)\n \t\treturn -1;\n \n \tif (!info.allow_query)\n \t\treturn -1;\n \n-\tchannel_pkt_freq_list.command = CPU_POWER_FREQ_LIST;\n+\tchannel_pkt_freq_list.command = RTE_POWER_FREQ_LIST;\n \tchannel_pkt_freq_list.num_vcpu = info.num_vcpus;\n \n \tif (freq_list) {\n@@ -764,13 +770,13 @@ send_capabilities(struct rte_power_channel_packet *pkt,\n \tif (get_info_vm(pkt->vm_name, &info) != 0)\n \t\treturn -1;\n \n-\tif (!list_requested && vcore_id >= MAX_VCPU_PER_VM)\n+\tif (!list_requested && vcore_id >= RTE_POWER_MAX_VCPU_PER_VM)\n \t\treturn -1;\n \n \tif (!info.allow_query)\n \t\treturn -1;\n \n-\tchannel_pkt_caps_list.command = CPU_POWER_CAPS_LIST;\n+\tchannel_pkt_caps_list.command = RTE_POWER_CAPS_LIST;\n \tchannel_pkt_caps_list.num_vcpu = info.num_vcpus;\n \n \tif (list_requested) {\n@@ -828,10 +834,10 @@ process_request(struct rte_power_channel_packet *pkt,\n \t\t\tCHANNEL_MGR_CHANNEL_PROCESSING) == 0)\n \t\treturn -1;\n \n-\tif (pkt->command == CPU_POWER) {\n+\tif (pkt->command == RTE_POWER_CPU_POWER) {\n \t\tunsigned int core_num;\n \n-\t\tif (pkt->core_type == CORE_TYPE_VIRTUAL)\n+\t\tif (pkt->core_type == RTE_POWER_CORE_TYPE_VIRTUAL)\n \t\t\tcore_num = get_pcpu(chan_info, pkt->resource_id);\n \t\telse\n \t\t\tcore_num = pkt->resource_id;\n@@ -843,22 +849,22 @@ process_request(struct rte_power_channel_packet *pkt,\n \t\tbool valid_unit = true;\n \n \t\tswitch (pkt->unit) {\n-\t\tcase(CPU_POWER_SCALE_MIN):\n+\t\tcase(RTE_POWER_SCALE_MIN):\n \t\t\tscale_res = power_manager_scale_core_min(core_num);\n \t\t\tbreak;\n-\t\tcase(CPU_POWER_SCALE_MAX):\n+\t\tcase(RTE_POWER_SCALE_MAX):\n \t\t\tscale_res = power_manager_scale_core_max(core_num);\n \t\t\tbreak;\n-\t\tcase(CPU_POWER_SCALE_DOWN):\n+\t\tcase(RTE_POWER_SCALE_DOWN):\n \t\t\tscale_res = power_manager_scale_core_down(core_num);\n \t\t\tbreak;\n-\t\tcase(CPU_POWER_SCALE_UP):\n+\t\tcase(RTE_POWER_SCALE_UP):\n \t\t\tscale_res = power_manager_scale_core_up(core_num);\n \t\t\tbreak;\n-\t\tcase(CPU_POWER_ENABLE_TURBO):\n+\t\tcase(RTE_POWER_ENABLE_TURBO):\n \t\t\tscale_res = power_manager_enable_turbo_core(core_num);\n \t\t\tbreak;\n-\t\tcase(CPU_POWER_DISABLE_TURBO):\n+\t\tcase(RTE_POWER_DISABLE_TURBO):\n \t\t\tscale_res = power_manager_disable_turbo_core(core_num);\n \t\t\tbreak;\n \t\tdefault:\n@@ -870,8 +876,8 @@ process_request(struct rte_power_channel_packet *pkt,\n \t\t\tret = send_ack_for_received_cmd(pkt,\n \t\t\t\t\tchan_info,\n \t\t\t\t\tscale_res >= 0 ?\n-\t\t\t\t\t\tCPU_POWER_CMD_ACK :\n-\t\t\t\t\t\tCPU_POWER_CMD_NACK);\n+\t\t\t\t\t\tRTE_POWER_CMD_ACK :\n+\t\t\t\t\t\tRTE_POWER_CMD_NACK);\n \t\t\tif (ret < 0)\n \t\t\t\tRTE_LOG(ERR, CHANNEL_MONITOR, \"Error during sending ack command.\\n\");\n \t\t} else\n@@ -879,19 +885,19 @@ process_request(struct rte_power_channel_packet *pkt,\n \n \t}\n \n-\tif (pkt->command == PKT_POLICY) {\n+\tif (pkt->command == RTE_POWER_PKT_POLICY) {\n \t\tRTE_LOG(INFO, CHANNEL_MONITOR, \"Processing policy request %s\\n\",\n \t\t\t\tpkt->vm_name);\n \t\tint ret = send_ack_for_received_cmd(pkt,\n \t\t\t\tchan_info,\n-\t\t\t\tCPU_POWER_CMD_ACK);\n+\t\t\t\tRTE_POWER_CMD_ACK);\n \t\tif (ret < 0)\n \t\t\tRTE_LOG(ERR, CHANNEL_MONITOR, \"Error during sending ack command.\\n\");\n \t\tupdate_policy(pkt);\n \t\tpolicy_is_set = 1;\n \t}\n \n-\tif (pkt->command == PKT_POLICY_REMOVE) {\n+\tif (pkt->command == RTE_POWER_PKT_POLICY_REMOVE) {\n \t\tret = remove_policy(pkt);\n \t\tif (ret == 0)\n \t\t\tRTE_LOG(INFO, CHANNEL_MONITOR,\n@@ -901,26 +907,26 @@ process_request(struct rte_power_channel_packet *pkt,\n \t\t\t\t \"Policy %s does not exist\\n\", pkt->vm_name);\n \t}\n \n-\tif (pkt->command == CPU_POWER_QUERY_FREQ_LIST ||\n-\t\tpkt->command == CPU_POWER_QUERY_FREQ) {\n+\tif (pkt->command == RTE_POWER_QUERY_FREQ_LIST ||\n+\t\tpkt->command == RTE_POWER_QUERY_FREQ) {\n \n \t\tRTE_LOG(INFO, CHANNEL_MONITOR,\n \t\t\t\"Frequency for %s requested.\\n\", pkt->vm_name);\n \t\tint ret = send_freq(pkt,\n \t\t\t\tchan_info,\n-\t\t\t\tpkt->command == CPU_POWER_QUERY_FREQ_LIST);\n+\t\t\t\tpkt->command == RTE_POWER_QUERY_FREQ_LIST);\n \t\tif (ret < 0)\n \t\t\tRTE_LOG(ERR, CHANNEL_MONITOR, \"Error during frequency sending.\\n\");\n \t}\n \n-\tif (pkt->command == CPU_POWER_QUERY_CAPS_LIST ||\n-\t\tpkt->command == CPU_POWER_QUERY_CAPS) {\n+\tif (pkt->command == RTE_POWER_QUERY_CAPS_LIST ||\n+\t\tpkt->command == RTE_POWER_QUERY_CAPS) {\n \n \t\tRTE_LOG(INFO, CHANNEL_MONITOR,\n \t\t\t\"Capabilities for %s requested.\\n\", pkt->vm_name);\n \t\tint ret = send_capabilities(pkt,\n \t\t\t\tchan_info,\n-\t\t\t\tpkt->command == CPU_POWER_QUERY_CAPS_LIST);\n+\t\t\t\tpkt->command == RTE_POWER_QUERY_CAPS_LIST);\n \t\tif (ret < 0)\n \t\t\tRTE_LOG(ERR, CHANNEL_MONITOR, \"Error during sending capabilities.\\n\");\n \t}\ndiff --git a/examples/vm_power_manager/channel_monitor.h b/examples/vm_power_manager/channel_monitor.h\nindex 0ca6207ad..5d3537b91 100644\n--- a/examples/vm_power_manager/channel_monitor.h\n+++ b/examples/vm_power_manager/channel_monitor.h\n@@ -19,10 +19,10 @@ struct core_share {\n \n struct policy {\n \tstruct rte_power_channel_packet pkt;\n-\tuint32_t pfid[MAX_VFS];\n-\tuint32_t port[MAX_VFS];\n+\tuint32_t pfid[RTE_POWER_MAX_VFS];\n+\tuint32_t port[RTE_POWER_MAX_VFS];\n \tunsigned int enabled;\n-\tstruct core_share core_share[MAX_VCPU_PER_VM];\n+\tstruct core_share core_share[RTE_POWER_MAX_VCPU_PER_VM];\n };\n \n #ifdef __cplusplus\ndiff --git a/examples/vm_power_manager/guest_cli/main.c b/examples/vm_power_manager/guest_cli/main.c\nindex fc7a8c30a..4e17f7fb9 100644\n--- a/examples/vm_power_manager/guest_cli/main.c\n+++ b/examples/vm_power_manager/guest_cli/main.c\n@@ -50,8 +50,8 @@ parse_args(int argc, char **argv)\n \t};\n \tstruct rte_power_channel_packet *policy;\n \tunsigned short int hours[MAX_HOURS];\n-\tunsigned short int cores[MAX_VCPU_PER_VM];\n-\tunsigned short int ports[MAX_VCPU_PER_VM];\n+\tunsigned short int cores[RTE_POWER_MAX_VCPU_PER_VM];\n+\tunsigned short int ports[RTE_POWER_MAX_VCPU_PER_VM];\n \tint i, cnt, idx;\n \n \tpolicy = get_policy();\n@@ -69,7 +69,8 @@ parse_args(int argc, char **argv)\n \t\tswitch (opt) {\n \t\t/* portmask */\n \t\tcase 'n':\n-\t\t\tstrlcpy(policy->vm_name, optarg, VM_MAX_NAME_SZ);\n+\t\t\tstrlcpy(policy->vm_name, optarg,\n+\t\t\t\t\tRTE_POWER_VM_MAX_NAME_SZ);\n \t\t\tprintf(\"Setting VM Name to [%s]\\n\", policy->vm_name);\n \t\t\tbreak;\n \t\tcase 'b':\n@@ -97,14 +98,15 @@ parse_args(int argc, char **argv)\n \t\t\t}\n \t\t\tbreak;\n \t\tcase 'l':\n-\t\t\tcnt = parse_set(optarg, cores, MAX_VCPU_PER_VM);\n+\t\t\tcnt = parse_set(optarg, cores,\n+\t\t\t\t\tRTE_POWER_MAX_VCPU_PER_VM);\n \t\t\tif (cnt < 0) {\n \t\t\t\tprintf(\"Invalid value passed to vcpu-list - [%s]\\n\",\n \t\t\t\t\t\toptarg);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tidx = 0;\n-\t\t\tfor (i = 0; i < MAX_VCPU_PER_VM; i++) {\n+\t\t\tfor (i = 0; i < RTE_POWER_MAX_VCPU_PER_VM; i++) {\n \t\t\t\tif (cores[i]) {\n \t\t\t\t\tprintf(\"***Using core %d\\n\", i);\n \t\t\t\t\tpolicy->vcpu_to_control[idx++] = i;\n@@ -114,14 +116,15 @@ parse_args(int argc, char **argv)\n \t\t\tprintf(\"Total cores: %d\\n\", idx);\n \t\t\tbreak;\n \t\tcase 'p':\n-\t\t\tcnt = parse_set(optarg, ports, MAX_VCPU_PER_VM);\n+\t\t\tcnt = parse_set(optarg, ports,\n+\t\t\t\t\tRTE_POWER_MAX_VCPU_PER_VM);\n \t\t\tif (cnt < 0) {\n \t\t\t\tprintf(\"Invalid value passed to port-list - [%s]\\n\",\n \t\t\t\t\t\toptarg);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tidx = 0;\n-\t\t\tfor (i = 0; i < MAX_VCPU_PER_VM; i++) {\n+\t\t\tfor (i = 0; i < RTE_POWER_MAX_VCPU_PER_VM; i++) {\n \t\t\t\tif (ports[i]) {\n \t\t\t\t\tprintf(\"***Using port %d\\n\", i);\n \t\t\t\t\tif (set_policy_mac(i, idx++) != 0) {\n@@ -135,13 +138,17 @@ parse_args(int argc, char **argv)\n \t\t\tbreak;\n \t\tcase 'o':\n \t\t\tif (!strcmp(optarg, \"TRAFFIC\"))\n-\t\t\t\tpolicy->policy_to_use = TRAFFIC;\n+\t\t\t\tpolicy->policy_to_use =\n+\t\t\t\t\t\tRTE_POWER_POLICY_TRAFFIC;\n \t\t\telse if (!strcmp(optarg, \"TIME\"))\n-\t\t\t\tpolicy->policy_to_use = TIME;\n+\t\t\t\tpolicy->policy_to_use =\n+\t\t\t\t\t\tRTE_POWER_POLICY_TIME;\n \t\t\telse if (!strcmp(optarg, \"WORKLOAD\"))\n-\t\t\t\tpolicy->policy_to_use = WORKLOAD;\n+\t\t\t\tpolicy->policy_to_use =\n+\t\t\t\t\t\tRTE_POWER_POLICY_WORKLOAD;\n \t\t\telse if (!strcmp(optarg, \"BRANCH_RATIO\"))\n-\t\t\t\tpolicy->policy_to_use = BRANCH_RATIO;\n+\t\t\t\tpolicy->policy_to_use =\n+\t\t\t\t\t\tRTE_POWER_POLICY_BRANCH_RATIO;\n \t\t\telse {\n \t\t\t\tprintf(\"Invalid policy specified: %s\\n\",\n \t\t\t\t\t\toptarg);\ndiff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c\nindex 125dfeb10..ec6409abd 100644\n--- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c\n+++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c\n@@ -103,10 +103,10 @@ set_policy_defaults(struct rte_power_channel_packet *pkt)\n \tpkt->timer_policy.hours_to_use_traffic_profile[0] = 8;\n \tpkt->timer_policy.hours_to_use_traffic_profile[1] = 10;\n \n-\tpkt->core_type = CORE_TYPE_VIRTUAL;\n-\tpkt->workload = LOW;\n-\tpkt->policy_to_use = TIME;\n-\tpkt->command = PKT_POLICY;\n+\tpkt->core_type = RTE_POWER_CORE_TYPE_VIRTUAL;\n+\tpkt->workload = RTE_POWER_WL_LOW;\n+\tpkt->policy_to_use = RTE_POWER_POLICY_TIME;\n+\tpkt->command = RTE_POWER_PKT_POLICY;\n \tstrlcpy(pkt->vm_name, \"ubuntu2\", sizeof(pkt->vm_name));\n \n \treturn 0;\n@@ -169,7 +169,7 @@ receive_freq_list(struct rte_power_channel_packet_freq_list *pkt_freq_list,\n \t\tRTE_LOG(ERR, GUEST_CLI, \"Error receiving message.\\n\");\n \t\treturn -1;\n \t}\n-\tif (pkt_freq_list->command != CPU_POWER_FREQ_LIST) {\n+\tif (pkt_freq_list->command != RTE_POWER_FREQ_LIST) {\n \t\tRTE_LOG(ERR, GUEST_CLI, \"Unexpected message received.\\n\");\n \t\treturn -1;\n \t}\n@@ -203,18 +203,18 @@ cmd_query_freq_list_parsed(void *parsed_result,\n \t\t\treturn;\n \t\t}\n \n-\t\tpkt.command = CPU_POWER_QUERY_FREQ_LIST;\n+\t\tpkt.command = RTE_POWER_QUERY_FREQ_LIST;\n \t\tstrlcpy(pkt.vm_name, policy.vm_name, sizeof(pkt.vm_name));\n \t\tquery_list = true;\n \t} else {\n \t\terrno = 0;\n \t\tlcore_id = (unsigned int)strtol(res->cpu_num, &ep, 10);\n-\t\tif (errno != 0 || lcore_id >= MAX_VCPU_PER_VM ||\n+\t\tif (errno != 0 || lcore_id >= RTE_POWER_MAX_VCPU_PER_VM ||\n \t\t\tep == res->cpu_num) {\n \t\t\tcmdline_printf(cl, \"Invalid parameter provided.\\n\");\n \t\t\treturn;\n \t\t}\n-\t\tpkt.command = CPU_POWER_QUERY_FREQ;\n+\t\tpkt.command = RTE_POWER_QUERY_FREQ;\n \t\tstrlcpy(pkt.vm_name, policy.vm_name, sizeof(pkt.vm_name));\n \t\tpkt.resource_id = lcore_id;\n \t}\n@@ -279,7 +279,7 @@ receive_capabilities(struct rte_power_channel_packet_caps_list *pkt_caps_list,\n \t\tRTE_LOG(ERR, GUEST_CLI, \"Error receiving message.\\n\");\n \t\treturn -1;\n \t}\n-\tif (pkt_caps_list->command != CPU_POWER_CAPS_LIST) {\n+\tif (pkt_caps_list->command != RTE_POWER_CAPS_LIST) {\n \t\tRTE_LOG(ERR, GUEST_CLI, \"Unexpected message received.\\n\");\n \t\treturn -1;\n \t}\n@@ -313,18 +313,18 @@ cmd_query_caps_list_parsed(void *parsed_result,\n \t\t\treturn;\n \t\t}\n \n-\t\tpkt.command = CPU_POWER_QUERY_CAPS_LIST;\n+\t\tpkt.command = RTE_POWER_QUERY_CAPS_LIST;\n \t\tstrlcpy(pkt.vm_name, policy.vm_name, sizeof(pkt.vm_name));\n \t\tquery_list = true;\n \t} else {\n \t\terrno = 0;\n \t\tlcore_id = (unsigned int)strtol(res->cpu_num, &ep, 10);\n-\t\tif (errno != 0 || lcore_id >= MAX_VCPU_PER_VM ||\n+\t\tif (errno != 0 || lcore_id >= RTE_POWER_MAX_VCPU_PER_VM ||\n \t\t\tep == res->cpu_num) {\n \t\t\tcmdline_printf(cl, \"Invalid parameter provided.\\n\");\n \t\t\treturn;\n \t\t}\n-\t\tpkt.command = CPU_POWER_QUERY_CAPS;\n+\t\tpkt.command = RTE_POWER_QUERY_CAPS;\n \t\tstrlcpy(pkt.vm_name, policy.vm_name, sizeof(pkt.vm_name));\n \t\tpkt.resource_id = lcore_id;\n \t}\n@@ -388,10 +388,10 @@ check_response_cmd(unsigned int lcore_id, int *result)\n \t\treturn -1;\n \n \tswitch (pkt.command) {\n-\tcase(CPU_POWER_CMD_ACK):\n+\tcase(RTE_POWER_CMD_ACK):\n \t\t*result = 1;\n \t\tbreak;\n-\tcase(CPU_POWER_CMD_NACK):\n+\tcase(RTE_POWER_CMD_NACK):\n \t\t*result = 0;\n \t\tbreak;\n \tdefault:\ndiff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c\nindex 75d5b5364..799d7b9bc 100644\n--- a/examples/vm_power_manager/main.c\n+++ b/examples/vm_power_manager/main.c\n@@ -394,7 +394,7 @@ main(int argc, char **argv)\n \t\t\t\t\t\"Cannot init port %\"PRIu8 \"\\n\",\n \t\t\t\t\tportid);\n \n-\t\t\tfor (w = 0; w < MAX_VFS; w++) {\n+\t\t\tfor (w = 0; w < RTE_POWER_MAX_VFS; w++) {\n \t\t\t\teth.addr_bytes[5] = w + 0xf0;\n \n \t\t\t\tret = -ENOTSUP;\ndiff --git a/lib/librte_power/guest_channel.c b/lib/librte_power/guest_channel.c\nindex 9eb2f6330..039cb1872 100644\n--- a/lib/librte_power/guest_channel.c\n+++ b/lib/librte_power/guest_channel.c\n@@ -100,7 +100,7 @@ guest_channel_host_connect(const char *path, unsigned int lcore_id)\n \t/* Send a test packet, this command is ignored by the host, but a successful\n \t * send indicates that the host endpoint is monitoring.\n \t */\n-\tpkt.command = CPU_POWER_CONNECT;\n+\tpkt.command = RTE_POWER_CPU_POWER_CONNECT;\n \tglobal_fds[lcore_id] = fd;\n \tret = guest_channel_send_msg(&pkt, lcore_id);\n \tif (ret != 0) {\ndiff --git a/lib/librte_power/power_kvm_vm.c b/lib/librte_power/power_kvm_vm.c\nindex 9ae438489..27f9937aa 100644\n--- a/lib/librte_power/power_kvm_vm.c\n+++ b/lib/librte_power/power_kvm_vm.c\n@@ -29,7 +29,7 @@ power_kvm_vm_init(unsigned int lcore_id)\n \t\t\t\tlcore_id, RTE_MAX_LCORE-1);\n \t\treturn -1;\n \t}\n-\tpkt[lcore_id].command = CPU_POWER;\n+\tpkt[lcore_id].command = RTE_POWER_CPU_POWER;\n \tpkt[lcore_id].resource_id = lcore_id;\n \treturn guest_channel_host_connect(FD_PATH, lcore_id);\n }\n@@ -90,25 +90,25 @@ send_msg(unsigned int lcore_id, uint32_t scale_direction)\n int\n power_kvm_vm_freq_up(unsigned int lcore_id)\n {\n-\treturn send_msg(lcore_id, CPU_POWER_SCALE_UP);\n+\treturn send_msg(lcore_id, RTE_POWER_SCALE_UP);\n }\n \n int\n power_kvm_vm_freq_down(unsigned int lcore_id)\n {\n-\treturn send_msg(lcore_id, CPU_POWER_SCALE_DOWN);\n+\treturn send_msg(lcore_id, RTE_POWER_SCALE_DOWN);\n }\n \n int\n power_kvm_vm_freq_max(unsigned int lcore_id)\n {\n-\treturn send_msg(lcore_id, CPU_POWER_SCALE_MAX);\n+\treturn send_msg(lcore_id, RTE_POWER_SCALE_MAX);\n }\n \n int\n power_kvm_vm_freq_min(unsigned int lcore_id)\n {\n-\treturn send_msg(lcore_id, CPU_POWER_SCALE_MIN);\n+\treturn send_msg(lcore_id, RTE_POWER_SCALE_MIN);\n }\n \n int\n@@ -121,13 +121,13 @@ power_kvm_vm_turbo_status(__rte_unused unsigned int lcore_id)\n int\n power_kvm_vm_enable_turbo(unsigned int lcore_id)\n {\n-\treturn send_msg(lcore_id, CPU_POWER_ENABLE_TURBO);\n+\treturn send_msg(lcore_id, RTE_POWER_ENABLE_TURBO);\n }\n \n int\n power_kvm_vm_disable_turbo(unsigned int lcore_id)\n {\n-\treturn send_msg(lcore_id, CPU_POWER_DISABLE_TURBO);\n+\treturn send_msg(lcore_id, RTE_POWER_DISABLE_TURBO);\n }\n \n struct rte_power_core_capabilities;\ndiff --git a/lib/librte_power/rte_power_guest_channel.h b/lib/librte_power/rte_power_guest_channel.h\nindex c9ab7bae8..b9273a025 100644\n--- a/lib/librte_power/rte_power_guest_channel.h\n+++ b/lib/librte_power/rte_power_guest_channel.h\n@@ -11,63 +11,65 @@ extern \"C\" {\n #include <stdint.h>\n #include <stdbool.h>\n \n-#define MAX_VFS 10\n-#define VM_MAX_NAME_SZ 32\n-#define MAX_VCPU_PER_VM         8\n-#define HOURS 24\n+#define RTE_POWER_MAX_VFS 10\n+#define RTE_POWER_VM_MAX_NAME_SZ 32\n+#define RTE_POWER_MAX_VCPU_PER_VM 8\n+#define RTE_POWER_HOURS_PER_DAY 24\n \n /* Valid Commands */\n-#define CPU_POWER               1\n-#define CPU_POWER_CONNECT       2\n-#define PKT_POLICY              3\n-#define PKT_POLICY_REMOVE       4\n+#define RTE_POWER_CPU_POWER               1\n+#define RTE_POWER_CPU_POWER_CONNECT       2\n+#define RTE_POWER_PKT_POLICY              3\n+#define RTE_POWER_PKT_POLICY_REMOVE       4\n \n-#define CORE_TYPE_VIRTUAL 0\n-#define CORE_TYPE_PHYSICAL 1\n+#define RTE_POWER_CORE_TYPE_VIRTUAL 0\n+#define RTE_POWER_CORE_TYPE_PHYSICAL 1\n \n /* CPU Power Command Scaling */\n-#define CPU_POWER_SCALE_UP      1\n-#define CPU_POWER_SCALE_DOWN    2\n-#define CPU_POWER_SCALE_MAX     3\n-#define CPU_POWER_SCALE_MIN     4\n-#define CPU_POWER_ENABLE_TURBO  5\n-#define CPU_POWER_DISABLE_TURBO 6\n+#define RTE_POWER_SCALE_UP      1\n+#define RTE_POWER_SCALE_DOWN    2\n+#define RTE_POWER_SCALE_MAX     3\n+#define RTE_POWER_SCALE_MIN     4\n+#define RTE_POWER_ENABLE_TURBO  5\n+#define RTE_POWER_DISABLE_TURBO 6\n \n /* CPU Power Queries */\n-#define CPU_POWER_QUERY_FREQ_LIST  7\n-#define CPU_POWER_QUERY_FREQ       8\n-#define CPU_POWER_QUERY_CAPS_LIST  9\n-#define CPU_POWER_QUERY_CAPS       10\n-\n-/* --- Outgoing messages --- */\n+#define RTE_POWER_QUERY_FREQ_LIST  7\n+#define RTE_POWER_QUERY_FREQ       8\n+#define RTE_POWER_QUERY_CAPS_LIST  9\n+#define RTE_POWER_QUERY_CAPS       10\n \n /* Generic Power Command Response */\n-#define CPU_POWER_CMD_ACK       1\n-#define CPU_POWER_CMD_NACK      2\n+#define RTE_POWER_CMD_ACK       1\n+#define RTE_POWER_CMD_NACK      2\n \n /* CPU Power Query Responses */\n-#define CPU_POWER_FREQ_LIST     3\n-#define CPU_POWER_CAPS_LIST     4\n+#define RTE_POWER_FREQ_LIST     3\n+#define RTE_POWER_CAPS_LIST     4\n \n-struct rte_power_timer_profile {\n-\tint busy_hours[HOURS];\n-\tint quiet_hours[HOURS];\n-\tint hours_to_use_traffic_profile[HOURS];\n+struct rte_power_traffic_policy {\n+\tuint32_t min_packet_thresh;\n+\tuint32_t avg_max_packet_thresh;\n+\tuint32_t max_max_packet_thresh;\n };\n \n-enum rte_power_workload_level {HIGH, MEDIUM, LOW};\n+struct rte_power_timer_profile {\n+\tint busy_hours[RTE_POWER_HOURS_PER_DAY];\n+\tint quiet_hours[RTE_POWER_HOURS_PER_DAY];\n+\tint hours_to_use_traffic_profile[RTE_POWER_HOURS_PER_DAY];\n+};\n \n-enum rte_power_policy {\n-\tTRAFFIC,\n-\tTIME,\n-\tWORKLOAD,\n-\tBRANCH_RATIO\n+enum rte_power_workload_level {\n+\tRTE_POWER_WL_HIGH,\n+\tRTE_POWER_WL_MEDIUM,\n+\tRTE_POWER_WL_LOW\n };\n \n-struct rte_power_traffic_policy {\n-\tuint32_t min_packet_thresh;\n-\tuint32_t avg_max_packet_thresh;\n-\tuint32_t max_max_packet_thresh;\n+enum rte_power_policy {\n+\tRTE_POWER_POLICY_TRAFFIC,\n+\tRTE_POWER_POLICY_TIME,\n+\tRTE_POWER_POLICY_WORKLOAD,\n+\tRTE_POWER_POLICY_BRANCH_RATIO\n };\n \n struct rte_power_turbo_status {\n@@ -78,12 +80,12 @@ struct rte_power_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+\tchar vm_name[RTE_POWER_VM_MAX_NAME_SZ];\n \n-\tuint64_t vfid[MAX_VFS];\n+\tuint64_t vfid[RTE_POWER_MAX_VFS];\n \tint nb_mac_to_monitor;\n \tstruct rte_power_traffic_policy traffic_policy;\n-\tuint8_t vcpu_to_control[MAX_VCPU_PER_VM];\n+\tuint8_t vcpu_to_control[RTE_POWER_MAX_VCPU_PER_VM];\n \tuint8_t num_vcpu;\n \tstruct rte_power_timer_profile timer_policy;\n \tbool core_type;\n@@ -96,9 +98,9 @@ struct rte_power_channel_packet_freq_list {\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+\tchar vm_name[RTE_POWER_VM_MAX_NAME_SZ];\n \n-\tuint32_t freq_list[MAX_VCPU_PER_VM];\n+\tuint32_t freq_list[RTE_POWER_MAX_VCPU_PER_VM];\n \tuint8_t num_vcpu;\n };\n \n@@ -106,10 +108,10 @@ struct rte_power_channel_packet_caps_list {\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+\tchar vm_name[RTE_POWER_VM_MAX_NAME_SZ];\n \n-\tuint64_t turbo[MAX_VCPU_PER_VM];\n-\tuint64_t priority[MAX_VCPU_PER_VM];\n+\tuint64_t turbo[RTE_POWER_MAX_VCPU_PER_VM];\n+\tuint64_t priority[RTE_POWER_MAX_VCPU_PER_VM];\n \tuint8_t num_vcpu;\n };\n \n",
    "prefixes": [
        "v4",
        "4/6"
    ]
}