get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87534,
    "url": "https://patches.dpdk.org/api/patches/87534/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210129102149.24463-4-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": "<20210129102149.24463-4-david.hunt@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210129102149.24463-4-david.hunt@intel.com",
    "date": "2021-01-29T10:21:46",
    "name": "[v5,3/6] power: rename public structs",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "7e6a0931957466fbc9d304be20459c24b68ec5b5",
    "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/20210129102149.24463-4-david.hunt@intel.com/mbox/",
    "series": [
        {
            "id": 15031,
            "url": "https://patches.dpdk.org/api/series/15031/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=15031",
            "date": "2021-01-29T10:21:43",
            "name": "power: fix make build for power apps",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/15031/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/87534/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/87534/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 B1959A09E4;\n\tFri, 29 Jan 2021 11:23:09 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7B01624018A;\n\tFri, 29 Jan 2021 11:22:48 +0100 (CET)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id 3FAB640694;\n Fri, 29 Jan 2021 11:22:42 +0100 (CET)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Jan 2021 02:22:41 -0800",
            "from silpixa00399952.ir.intel.com (HELO\n silpixa00399952.ger.corp.intel.com) ([10.237.222.38])\n by fmsmga005.fm.intel.com with ESMTP; 29 Jan 2021 02:22:39 -0800"
        ],
        "IronPort-SDR": [
            "\n ULItou3gOCthvvmgDPOwsC2V9UiYT6Sra1fjR6NicvHb1KESqhP/PE4gtI7hcIbaP2qf3WxYuX\n /6s74w5npaTA==",
            "\n KpyQ/EKpZo4vmeSd+TfnL+x4GqRGSg/peRrisk92uKDCXooWOYJqYJh14AVxUrQF6K4gjO6NHf\n c5Pe/+GgJHcA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9878\"; a=\"244487237\"",
            "E=Sophos;i=\"5.79,385,1602572400\"; d=\"scan'208\";a=\"244487237\"",
            "E=Sophos;i=\"5.79,385,1602572400\"; d=\"scan'208\";a=\"579113300\""
        ],
        "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": "Fri, 29 Jan 2021 10:21:46 +0000",
        "Message-Id": "<20210129102149.24463-4-david.hunt@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210129102149.24463-1-david.hunt@intel.com>",
        "References": "<20210121172201.22582-2-david.hunt@intel.com>\n <20210129102149.24463-1-david.hunt@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v5 3/6] power: rename public structs",
        "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 public structs to have an rte_power_ prefix and\nadd them to version.map in experimental section.\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>\nAcked-by: Anatoly Burakov <anatoly.burakov@intel.com>\n\n---\nchanges in v4\n* Improve sizeof's\n* add the 2 functions to the version.map file\nchanges in v5\n* Moved version.map additions from patch 3 to patch 2\n---\n examples/vm_power_manager/channel_monitor.c   | 33 ++++++------\n examples/vm_power_manager/channel_monitor.h   |  2 +-\n examples/vm_power_manager/guest_cli/main.c    |  2 +-\n .../guest_cli/vm_power_cli_guest.c            | 38 +++++++-------\n .../guest_cli/vm_power_cli_guest.h            |  4 +-\n lib/librte_power/guest_channel.c              |  7 +--\n lib/librte_power/guest_channel.h              |  7 +--\n lib/librte_power/power_kvm_vm.c               |  2 +-\n lib/librte_power/rte_power_guest_channel.h    | 51 +++++++++----------\n 9 files changed, 73 insertions(+), 73 deletions(-)",
    "diff": "diff --git a/examples/vm_power_manager/channel_monitor.c b/examples/vm_power_manager/channel_monitor.c\nindex 08306105d..1b6041b6f 100644\n--- a/examples/vm_power_manager/channel_monitor.c\n+++ b/examples/vm_power_manager/channel_monitor.c\n@@ -108,7 +108,7 @@ str_to_ether_addr(const char *a, struct rte_ether_addr *ether_addr)\n }\n \n static int\n-set_policy_mac(struct channel_packet *pkt, int idx, char *mac)\n+set_policy_mac(struct rte_power_channel_packet *pkt, int idx, char *mac)\n {\n \tunion PFID pfid;\n \tint ret;\n@@ -165,7 +165,7 @@ get_resource_id_from_vmname(const char *vm_name)\n }\n \n static int\n-parse_json_to_pkt(json_t *element, struct channel_packet *pkt,\n+parse_json_to_pkt(json_t *element, struct rte_power_channel_packet *pkt,\n \t\t\t\t\tconst char *vm_name)\n {\n \tconst char *key;\n@@ -173,7 +173,7 @@ parse_json_to_pkt(json_t *element, struct channel_packet *pkt,\n \tint ret;\n \tint resource_id;\n \n-\tmemset(pkt, 0, sizeof(struct channel_packet));\n+\tmemset(pkt, 0, sizeof(*pkt));\n \n \tpkt->nb_mac_to_monitor = 0;\n \tpkt->t_boost_status.tbEnabled = false;\n@@ -463,7 +463,7 @@ get_pfid(struct policy *pol)\n }\n \n static int\n-update_policy(struct channel_packet *pkt)\n+update_policy(struct rte_power_channel_packet *pkt)\n {\n \n \tunsigned int updated = 0;\n@@ -512,7 +512,7 @@ update_policy(struct channel_packet *pkt)\n }\n \n static int\n-remove_policy(struct channel_packet *pkt __rte_unused)\n+remove_policy(struct rte_power_channel_packet *pkt __rte_unused)\n {\n \tunsigned int i;\n \n@@ -673,7 +673,7 @@ static void\n apply_policy(struct policy *pol)\n {\n \n-\tstruct channel_packet *pkt = &pol->pkt;\n+\tstruct rte_power_channel_packet *pkt = &pol->pkt;\n \n \t/*Check policy to use*/\n \tif (pkt->policy_to_use == TRAFFIC)\n@@ -715,12 +715,12 @@ write_binary_packet(void *buffer,\n }\n \n static int\n-send_freq(struct channel_packet *pkt,\n+send_freq(struct rte_power_channel_packet *pkt,\n \t\tstruct channel_info *chan_info,\n \t\tbool freq_list)\n {\n \tunsigned int vcore_id = pkt->resource_id;\n-\tstruct channel_packet_freq_list channel_pkt_freq_list;\n+\tstruct rte_power_channel_packet_freq_list channel_pkt_freq_list;\n \tstruct vm_info info;\n \n \tif (get_info_vm(pkt->vm_name, &info) != 0)\n@@ -751,12 +751,12 @@ send_freq(struct channel_packet *pkt,\n }\n \n static int\n-send_capabilities(struct channel_packet *pkt,\n+send_capabilities(struct rte_power_channel_packet *pkt,\n \t\tstruct channel_info *chan_info,\n \t\tbool list_requested)\n {\n \tunsigned int vcore_id = pkt->resource_id;\n-\tstruct channel_packet_caps_list channel_pkt_caps_list;\n+\tstruct rte_power_channel_packet_caps_list channel_pkt_caps_list;\n \tstruct vm_info info;\n \tstruct rte_power_core_capabilities caps;\n \tint ret;\n@@ -805,18 +805,19 @@ send_capabilities(struct channel_packet *pkt,\n }\n \n static int\n-send_ack_for_received_cmd(struct channel_packet *pkt,\n+send_ack_for_received_cmd(struct rte_power_channel_packet *pkt,\n \t\tstruct channel_info *chan_info,\n \t\tuint32_t command)\n {\n \tpkt->command = command;\n \treturn write_binary_packet(pkt,\n-\t\t\tsizeof(struct channel_packet),\n+\t\t\tsizeof(*pkt),\n \t\t\tchan_info);\n }\n \n static int\n-process_request(struct channel_packet *pkt, struct channel_info *chan_info)\n+process_request(struct rte_power_channel_packet *pkt,\n+\t\tstruct channel_info *chan_info)\n {\n \tint ret;\n \n@@ -988,7 +989,7 @@ channel_monitor_init(void)\n static void\n read_binary_packet(struct channel_info *chan_info)\n {\n-\tstruct channel_packet pkt;\n+\tstruct rte_power_channel_packet pkt;\n \tvoid *buffer = &pkt;\n \tint buffer_len = sizeof(pkt);\n \tint n_bytes, err = 0;\n@@ -1019,7 +1020,7 @@ read_binary_packet(struct channel_info *chan_info)\n static void\n read_json_packet(struct channel_info *chan_info)\n {\n-\tstruct channel_packet pkt;\n+\tstruct rte_power_channel_packet pkt;\n \tint n_bytes, ret;\n \tjson_t *root;\n \tjson_error_t error;\n@@ -1063,7 +1064,7 @@ read_json_packet(struct channel_info *chan_info)\n \t\t\t/*\n \t\t\t * Because our data is now in the json\n \t\t\t * object, we can overwrite the pkt\n-\t\t\t * with a channel_packet struct, using\n+\t\t\t * with a rte_power_channel_packet struct, using\n \t\t\t * parse_json_to_pkt()\n \t\t\t */\n \t\t\tret = parse_json_to_pkt(root, &pkt, resource_name);\ndiff --git a/examples/vm_power_manager/channel_monitor.h b/examples/vm_power_manager/channel_monitor.h\nindex 4a526ff67..0ca6207ad 100644\n--- a/examples/vm_power_manager/channel_monitor.h\n+++ b/examples/vm_power_manager/channel_monitor.h\n@@ -18,7 +18,7 @@ struct core_share {\n };\n \n struct policy {\n-\tstruct channel_packet pkt;\n+\tstruct rte_power_channel_packet pkt;\n \tuint32_t pfid[MAX_VFS];\n \tuint32_t port[MAX_VFS];\n \tunsigned int enabled;\ndiff --git a/examples/vm_power_manager/guest_cli/main.c b/examples/vm_power_manager/guest_cli/main.c\nindex f63b3c988..fc7a8c30a 100644\n--- a/examples/vm_power_manager/guest_cli/main.c\n+++ b/examples/vm_power_manager/guest_cli/main.c\n@@ -48,7 +48,7 @@ parse_args(int argc, char **argv)\n \t\t{ \"policy\", required_argument, 0, 'o'},\n \t\t{NULL, 0, 0, 0}\n \t};\n-\tstruct channel_packet *policy;\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];\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 cf1636e78..125dfeb10 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@@ -38,9 +38,9 @@ union PFID {\n \tuint64_t pfid;\n };\n \n-static struct channel_packet policy;\n+static struct rte_power_channel_packet policy;\n \n-struct channel_packet *\n+struct rte_power_channel_packet *\n get_policy(void)\n {\n \treturn &policy;\n@@ -49,7 +49,7 @@ get_policy(void)\n int\n set_policy_mac(int port, int idx)\n {\n-\tstruct channel_packet *policy;\n+\tstruct rte_power_channel_packet *policy;\n \tunion PFID pfid;\n \tint ret;\n \n@@ -73,7 +73,7 @@ set_policy_mac(int port, int idx)\n }\n \n int\n-set_policy_defaults(struct channel_packet *pkt)\n+set_policy_defaults(struct rte_power_channel_packet *pkt)\n {\n \tint ret;\n \n@@ -145,7 +145,7 @@ struct cmd_freq_list_result {\n };\n \n static int\n-query_data(struct channel_packet *pkt, unsigned int lcore_id)\n+query_data(struct rte_power_channel_packet *pkt, unsigned int lcore_id)\n {\n \tint ret;\n \tret = rte_power_guest_channel_send_msg(pkt, lcore_id);\n@@ -157,13 +157,13 @@ query_data(struct channel_packet *pkt, unsigned int lcore_id)\n }\n \n static int\n-receive_freq_list(struct channel_packet_freq_list *pkt_freq_list,\n+receive_freq_list(struct rte_power_channel_packet_freq_list *pkt_freq_list,\n \t\tunsigned int lcore_id)\n {\n \tint ret;\n \n \tret = rte_power_guest_channel_receive_msg(pkt_freq_list,\n-\t\t\tsizeof(struct channel_packet_freq_list),\n+\t\t\tsizeof(*pkt_freq_list),\n \t\t\tlcore_id);\n \tif (ret < 0) {\n \t\tRTE_LOG(ERR, GUEST_CLI, \"Error receiving message.\\n\");\n@@ -183,14 +183,14 @@ cmd_query_freq_list_parsed(void *parsed_result,\n {\n \tstruct cmd_freq_list_result *res = parsed_result;\n \tunsigned int lcore_id;\n-\tstruct channel_packet_freq_list pkt_freq_list;\n-\tstruct channel_packet pkt;\n+\tstruct rte_power_channel_packet_freq_list pkt_freq_list;\n+\tstruct rte_power_channel_packet pkt;\n \tbool query_list = false;\n \tint ret;\n \tchar *ep;\n \n-\tmemset(&pkt, 0, sizeof(struct channel_packet));\n-\tmemset(&pkt_freq_list, 0, sizeof(struct channel_packet_freq_list));\n+\tmemset(&pkt, 0, sizeof(pkt));\n+\tmemset(&pkt_freq_list, 0, sizeof(pkt_freq_list));\n \n \tif (!strcmp(res->cpu_num, \"all\")) {\n \n@@ -267,13 +267,13 @@ struct cmd_query_caps_result {\n };\n \n static int\n-receive_capabilities(struct channel_packet_caps_list *pkt_caps_list,\n+receive_capabilities(struct rte_power_channel_packet_caps_list *pkt_caps_list,\n \t\tunsigned int lcore_id)\n {\n \tint ret;\n \n \tret = rte_power_guest_channel_receive_msg(pkt_caps_list,\n-\t\tsizeof(struct channel_packet_caps_list),\n+\t\tsizeof(*pkt_caps_list),\n \t\tlcore_id);\n \tif (ret < 0) {\n \t\tRTE_LOG(ERR, GUEST_CLI, \"Error receiving message.\\n\");\n@@ -293,14 +293,14 @@ cmd_query_caps_list_parsed(void *parsed_result,\n {\n \tstruct cmd_query_caps_result *res = parsed_result;\n \tunsigned int lcore_id;\n-\tstruct channel_packet_caps_list pkt_caps_list;\n-\tstruct channel_packet pkt;\n+\tstruct rte_power_channel_packet_caps_list pkt_caps_list;\n+\tstruct rte_power_channel_packet pkt;\n \tbool query_list = false;\n \tint ret;\n \tchar *ep;\n \n-\tmemset(&pkt, 0, sizeof(struct channel_packet));\n-\tmemset(&pkt_caps_list, 0, sizeof(struct channel_packet_caps_list));\n+\tmemset(&pkt, 0, sizeof(pkt));\n+\tmemset(&pkt_caps_list, 0, sizeof(pkt_caps_list));\n \n \tif (!strcmp(res->cpu_num, \"all\")) {\n \n@@ -380,7 +380,7 @@ cmdline_parse_inst_t cmd_query_caps_list = {\n static int\n check_response_cmd(unsigned int lcore_id, int *result)\n {\n-\tstruct channel_packet pkt;\n+\tstruct rte_power_channel_packet pkt;\n \tint ret;\n \n \tret = rte_power_guest_channel_receive_msg(&pkt, sizeof pkt, lcore_id);\n@@ -473,7 +473,7 @@ struct cmd_send_policy_result {\n };\n \n static inline int\n-send_policy(struct channel_packet *pkt, struct cmdline *cl)\n+send_policy(struct rte_power_channel_packet *pkt, struct cmdline *cl)\n {\n \tint ret;\n \ndiff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.h b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.h\nindex 2299d23dc..5d285ca9d 100644\n--- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.h\n+++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.h\n@@ -11,11 +11,11 @@ extern \"C\" {\n \n #include \"rte_power_guest_channel.h\"\n \n-struct channel_packet *get_policy(void);\n+struct rte_power_channel_packet *get_policy(void);\n \n int set_policy_mac(int port, int idx);\n \n-int set_policy_defaults(struct channel_packet *pkt);\n+int set_policy_defaults(struct rte_power_channel_packet *pkt);\n \n void run_cli(__rte_unused void *arg);\n \ndiff --git a/lib/librte_power/guest_channel.c b/lib/librte_power/guest_channel.c\nindex 4cb5ae1dd..9eb2f6330 100644\n--- a/lib/librte_power/guest_channel.c\n+++ b/lib/librte_power/guest_channel.c\n@@ -55,7 +55,7 @@ int\n guest_channel_host_connect(const char *path, unsigned int lcore_id)\n {\n \tint flags, ret;\n-\tstruct channel_packet pkt;\n+\tstruct rte_power_channel_packet pkt;\n \tchar fd_path[PATH_MAX];\n \tint fd = -1;\n \n@@ -119,7 +119,8 @@ guest_channel_host_connect(const char *path, unsigned int lcore_id)\n }\n \n int\n-guest_channel_send_msg(struct channel_packet *pkt, unsigned int lcore_id)\n+guest_channel_send_msg(struct rte_power_channel_packet *pkt,\n+\t\tunsigned int lcore_id)\n {\n \tint ret, buffer_len = sizeof(*pkt);\n \tvoid *buffer = pkt;\n@@ -149,7 +150,7 @@ guest_channel_send_msg(struct channel_packet *pkt, unsigned int lcore_id)\n \treturn 0;\n }\n \n-int rte_power_guest_channel_send_msg(struct channel_packet *pkt,\n+int rte_power_guest_channel_send_msg(struct rte_power_channel_packet *pkt,\n \t\t\tunsigned int lcore_id)\n {\n \treturn guest_channel_send_msg(pkt, lcore_id);\ndiff --git a/lib/librte_power/guest_channel.h b/lib/librte_power/guest_channel.h\nindex 69020b030..7d3a909d9 100644\n--- a/lib/librte_power/guest_channel.h\n+++ b/lib/librte_power/guest_channel.h\n@@ -63,7 +63,8 @@ void guest_channel_host_disconnect(unsigned int lcore_id);\n  *  - Negative on channel not connected.\n  *  - errno on write to channel error.\n  */\n-int guest_channel_send_msg(struct channel_packet *pkt, unsigned int lcore_id);\n+int guest_channel_send_msg(struct rte_power_channel_packet *pkt,\n+\t\tunsigned int lcore_id);\n \n \n \n@@ -72,8 +73,8 @@ int guest_channel_send_msg(struct channel_packet *pkt, unsigned int lcore_id);\n  * from the host endpoint.\n  *\n  * @param pkt\n- *  Pointer to channel_packet or\n- *  channel_packet_freq_list struct.\n+ *  Pointer to rte_power_channel_packet or\n+ *  rte_power_channel_packet_freq_list struct.\n  *\n  * @param pkt_len\n  *  Size of expected data packet.\ndiff --git a/lib/librte_power/power_kvm_vm.c b/lib/librte_power/power_kvm_vm.c\nindex 649ebe85c..9ae438489 100644\n--- a/lib/librte_power/power_kvm_vm.c\n+++ b/lib/librte_power/power_kvm_vm.c\n@@ -13,7 +13,7 @@\n \n #define FD_PATH \"/dev/virtio-ports/virtio.serial.port.poweragent\"\n \n-static struct channel_packet pkt[RTE_MAX_LCORE];\n+static struct rte_power_channel_packet pkt[RTE_MAX_LCORE];\n \n int\n power_kvm_vm_check_supported(void)\ndiff --git a/lib/librte_power/rte_power_guest_channel.h b/lib/librte_power/rte_power_guest_channel.h\nindex c500c0cda..c9ab7bae8 100644\n--- a/lib/librte_power/rte_power_guest_channel.h\n+++ b/lib/librte_power/rte_power_guest_channel.h\n@@ -11,7 +11,10 @@ extern \"C\" {\n #include <stdint.h>\n #include <stdbool.h>\n \n-/* --- Incoming messages --- */\n+#define MAX_VFS 10\n+#define VM_MAX_NAME_SZ 32\n+#define MAX_VCPU_PER_VM         8\n+#define HOURS 24\n \n /* Valid Commands */\n #define CPU_POWER               1\n@@ -19,6 +22,9 @@ extern \"C\" {\n #define PKT_POLICY              3\n #define PKT_POLICY_REMOVE       4\n \n+#define CORE_TYPE_VIRTUAL 0\n+#define 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@@ -43,41 +49,32 @@ extern \"C\" {\n #define CPU_POWER_FREQ_LIST     3\n #define CPU_POWER_CAPS_LIST     4\n \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+struct rte_power_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+enum rte_power_workload_level {HIGH, MEDIUM, LOW};\n+\n+enum rte_power_policy {\n \tTRAFFIC,\n \tTIME,\n \tWORKLOAD,\n \tBRANCH_RATIO\n };\n \n-struct traffic {\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-#define CORE_TYPE_VIRTUAL 0\n-#define CORE_TYPE_PHYSICAL 1\n+struct rte_power_turbo_status {\n+\tbool tbEnabled;\n+};\n \n-struct channel_packet {\n+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@@ -85,17 +82,17 @@ struct channel_packet {\n \n \tuint64_t vfid[MAX_VFS];\n \tint nb_mac_to_monitor;\n-\tstruct traffic traffic_policy;\n+\tstruct rte_power_traffic_policy traffic_policy;\n \tuint8_t vcpu_to_control[MAX_VCPU_PER_VM];\n \tuint8_t num_vcpu;\n-\tstruct timer_profile timer_policy;\n+\tstruct rte_power_timer_profile timer_policy;\n \tbool core_type;\n-\tenum workload workload;\n-\tenum policy_to_use policy_to_use;\n-\tstruct t_boost_status t_boost_status;\n+\tenum rte_power_workload_level workload;\n+\tenum rte_power_policy policy_to_use;\n+\tstruct rte_power_turbo_status t_boost_status;\n };\n \n-struct channel_packet_freq_list {\n+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@@ -105,7 +102,7 @@ struct channel_packet_freq_list {\n \tuint8_t num_vcpu;\n };\n \n-struct channel_packet_caps_list {\n+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@@ -135,7 +132,7 @@ struct channel_packet_caps_list {\n  *  - Negative on error.\n  */\n __rte_experimental\n-int rte_power_guest_channel_send_msg(struct channel_packet *pkt,\n+int rte_power_guest_channel_send_msg(struct rte_power_channel_packet *pkt,\n \t\t\tunsigned int lcore_id);\n \n /**\n",
    "prefixes": [
        "v5",
        "3/6"
    ]
}