examples/vm_power: show warning when more than 64 cores
[dpdk.git] / examples / vm_power_manager / channel_manager.c
index 7d892e2..35ff40a 100644 (file)
@@ -764,12 +764,11 @@ channel_manager_init(const char *path)
        }
        global_n_host_cpus = (unsigned)n_cpus;
 
-       if (global_n_host_cpus > CHANNEL_CMDS_MAX_CPUS) {
-               RTE_LOG(ERR, CHANNEL_MANAGER, "The number of host CPUs(%u) exceeds the "
-                               "maximum of %u\n", global_n_host_cpus, CHANNEL_CMDS_MAX_CPUS);
-               goto error;
-
-       }
+       if (global_n_host_cpus > CHANNEL_CMDS_MAX_CPUS)
+               RTE_LOG(WARNING, CHANNEL_MANAGER, "The number of host CPUs(%u) exceeds the "
+                               "maximum of %u. No cores over %u should be used.\n",
+                               global_n_host_cpus, CHANNEL_CMDS_MAX_CPUS,
+                               CHANNEL_CMDS_MAX_CPUS - 1);
 
        return 0;
 error: