summaryrefslogtreecommitdiff
path: root/examples/vm_power_manager
diff options
context:
space:
mode:
authorMarvin Liu <yong.liu@intel.com>2016-07-04 16:57:59 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-11 17:23:32 +0200
commitfcccf6f1d509e94c2b6145104ba9728bbe315574 (patch)
treeff770d7770fa136bef13579caa616e945059339c /examples/vm_power_manager
parent3ca530edd4443f217beefe36fd176ce2804e0bf7 (diff)
downloaddpdk-fcccf6f1d509e94c2b6145104ba9728bbe315574.zip
dpdk-fcccf6f1d509e94c2b6145104ba9728bbe315574.tar.gz
dpdk-fcccf6f1d509e94c2b6145104ba9728bbe315574.tar.xz
examples/vm_power_manager: remove dependency on internal header
Macro CHANNEL_CMDS_MAX_CPUS stand for the maximum number of cores controlled by virtual channels. This macro only be used in the example, so remove it from library to example header file. Signed-off-by: Marvin Liu <yong.liu@intel.com>
Diffstat (limited to 'examples/vm_power_manager')
-rw-r--r--examples/vm_power_manager/channel_manager.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/vm_power_manager/channel_manager.h b/examples/vm_power_manager/channel_manager.h
index 67e26ec..47c3b9c 100644
--- a/examples/vm_power_manager/channel_manager.h
+++ b/examples/vm_power_manager/channel_manager.h
@@ -41,7 +41,13 @@ extern "C" {
#include <linux/limits.h>
#include <sys/un.h>
#include <rte_atomic.h>
-#include "channel_commands.h"
+
+/* Maximum number of CPUs */
+#define CHANNEL_CMDS_MAX_CPUS 64
+#if CHANNEL_CMDS_MAX_CPUS > 64
+#error Maximum number of cores is 64, overflow is guaranteed to \
+ cause problems with VM Power Management
+#endif
/* Maximum name length including '\0' terminator */
#define CHANNEL_MGR_MAX_NAME_LEN 64