X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvm_power_manager%2Fchannel_monitor.h;h=2b38c554b5cdb07c62f0e7ec2f16ef06afa4dbbd;hb=a1978aa23bf4a8dd34087173f7769250d050315e;hp=0ca6207ad8dd4eeb1ee246eb36083007d2d56a2b;hpb=bd5b6720fe6588ff2d48c70879f355243466f155;p=dpdk.git diff --git a/examples/vm_power_manager/channel_monitor.h b/examples/vm_power_manager/channel_monitor.h index 0ca6207ad8..2b38c554b5 100644 --- a/examples/vm_power_manager/channel_monitor.h +++ b/examples/vm_power_manager/channel_monitor.h @@ -5,8 +5,9 @@ #ifndef CHANNEL_MONITOR_H_ #define CHANNEL_MONITOR_H_ +#include + #include "channel_manager.h" -#include "rte_power_guest_channel.h" struct core_share { unsigned int pcpu; @@ -19,10 +20,10 @@ struct core_share { struct policy { struct rte_power_channel_packet pkt; - uint32_t pfid[MAX_VFS]; - uint32_t port[MAX_VFS]; + uint32_t pfid[RTE_POWER_MAX_VFS]; + uint32_t port[RTE_POWER_MAX_VFS]; unsigned int enabled; - struct core_share core_share[MAX_VCPU_PER_VM]; + struct core_share core_share[RTE_POWER_MAX_VCPU_PER_VM]; }; #ifdef __cplusplus