summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Hunt <david.hunt@intel.com>2018-12-14 13:31:37 +0000
committerThomas Monjalon <thomas@monjalon.net>2018-12-19 22:24:36 +0100
commit1aaa1b2bd4d38f16568a956d83268748acace0d1 (patch)
tree8bbd63f747244aa523c00c4b2dbc5dce8150c2f9 /examples
parent5776b7a371d1635aea5f15dd5f79fdc0cafdb63d (diff)
downloaddpdk-next-eventdev-1aaa1b2bd4d38f16568a956d83268748acace0d1.zip
dpdk-next-eventdev-1aaa1b2bd4d38f16568a956d83268748acace0d1.tar.gz
dpdk-next-eventdev-1aaa1b2bd4d38f16568a956d83268748acace0d1.tar.xz
examples/power: increase max cores to 256
Increase the number of addressable cores from 64 to 256. Also remove the warning that incresing this number beyond 64 will cause problems (because of the previous use of uint64_t masks). Now this number can be increased significantly without causing problems. Signed-off-by: David Hunt <david.hunt@intel.com> Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/vm_power_manager/channel_manager.h8
-rw-r--r--examples/vm_power_manager/power_manager.h2
2 files changed, 3 insertions, 7 deletions
diff --git a/examples/vm_power_manager/channel_manager.h b/examples/vm_power_manager/channel_manager.h
index 5e050ed..c3cdce4 100644
--- a/examples/vm_power_manager/channel_manager.h
+++ b/examples/vm_power_manager/channel_manager.h
@@ -14,17 +14,13 @@ extern "C" {
#include <rte_atomic.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
+#define CHANNEL_CMDS_MAX_CPUS 256
/* Maximum name length including '\0' terminator */
#define CHANNEL_MGR_MAX_NAME_LEN 64
/* Maximum number of channels to each Virtual Machine */
-#define CHANNEL_MGR_MAX_CHANNELS 64
+#define CHANNEL_MGR_MAX_CHANNELS 256
/* Hypervisor Path for libvirt(qemu/KVM) */
#define CHANNEL_MGR_DEFAULT_HV_PATH "qemu:///system"
diff --git a/examples/vm_power_manager/power_manager.h b/examples/vm_power_manager/power_manager.h
index 605b3c8..c367384 100644
--- a/examples/vm_power_manager/power_manager.h
+++ b/examples/vm_power_manager/power_manager.h
@@ -33,7 +33,7 @@ core_info_init(void);
#define RTE_LOGTYPE_POWER_MANAGER RTE_LOGTYPE_USER1
/* Maximum number of CPUS to manage */
-#define POWER_MGR_MAX_CPUS 64
+#define POWER_MGR_MAX_CPUS 256
/**
* Initialize power management.
* Initializes resources and verifies the number of CPUs on the system.