summaryrefslogtreecommitdiff
path: root/examples/vm_power_manager
diff options
context:
space:
mode:
authorDavid Hunt <david.hunt@intel.com>2018-10-17 14:05:28 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-10-26 10:50:26 +0200
commit39701c19dd2f1748385d9546ccff97e845a6575b (patch)
tree2216da28dd3fa611c9e02fac5061ffdaaff22a76 /examples/vm_power_manager
parent757bf2e7cfb987e1dafd3aeb166fe314f620c968 (diff)
downloaddpdk-39701c19dd2f1748385d9546ccff97e845a6575b.zip
dpdk-39701c19dd2f1748385d9546ccff97e845a6575b.tar.gz
dpdk-39701c19dd2f1748385d9546ccff97e845a6575b.tar.xz
examples/power: set core type in guest app
The changes here are minimal, as the guest app functionality is not changing at all, but there is a new element in the channel_packet struct that needs to have a default set (channel_packet->core_type). Signed-off-by: David Hunt <david.hunt@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Diffstat (limited to 'examples/vm_power_manager')
-rw-r--r--examples/vm_power_manager/guest_cli/vm_power_cli_guest.c1
1 files changed, 1 insertions, 0 deletions
diff --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
index 0db1b80..2d9e768 100644
--- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c
+++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c
@@ -92,6 +92,7 @@ set_policy_defaults(struct channel_packet *pkt)
pkt->timer_policy.hours_to_use_traffic_profile[0] = 8;
pkt->timer_policy.hours_to_use_traffic_profile[1] = 10;
+ pkt->core_type = CORE_TYPE_VIRTUAL;
pkt->workload = LOW;
pkt->policy_to_use = TIME;
pkt->command = PKT_POLICY;