Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update changelog for 16.11.8
[deb_dpdk.git]
/
examples
/
vm_power_manager
/
channel_manager.h
diff --git
a/examples/vm_power_manager/channel_manager.h
b/examples/vm_power_manager/channel_manager.h
index
67e26ec
..
47c3b9c
100644
(file)
--- 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 <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
/* Maximum name length including '\0' terminator */
#define CHANNEL_MGR_MAX_NAME_LEN 64