]> git.droids-corp.org - dpdk.git/blobdiff - examples/vm_power_manager/channel_monitor.h
crypto/mlx5: add maximum segments configuration
[dpdk.git] / examples / vm_power_manager / channel_monitor.h
index 7362a80d2673f8f6f4746236a0cd7b363e6ff2d2..2b38c554b5cdb07c62f0e7ec2f16ef06afa4dbbd 100644 (file)
@@ -5,8 +5,9 @@
 #ifndef CHANNEL_MONITOR_H_
 #define CHANNEL_MONITOR_H_
 
+#include <rte_power.h>
+
 #include "channel_manager.h"
-#include "channel_commands.h"
 
 struct core_share {
        unsigned int pcpu;
@@ -18,11 +19,11 @@ struct core_share {
 };
 
 struct policy {
-       struct channel_packet pkt;
-       uint32_t pfid[MAX_VFS];
-       uint32_t port[MAX_VFS];
+       struct rte_power_channel_packet pkt;
+       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