CHANNEL_MGR_SOCKET_PATH, dir->d_name);
continue;
}
+ if (rte_lcore_index(channel_num) == -1)
+ continue;
+
/* if channel has not been added previously */
if (channel_exists(vm_info, channel_num))
continue;
}
for (i = 0; i < len_channel_list; i++) {
+ if (rte_lcore_index(i) == -1)
+ continue;
if (channel_list[i] >= RTE_MAX_LCORE) {
RTE_LOG(INFO, CHANNEL_MANAGER, "Channel(%u) is out of range "
}
for (i = 0; i < ci->core_count; i++) {
+ if (rte_lcore_index(i) == -1)
+ continue;
+
if (ci->cd[i].global_enabled_cpus == 0)
continue;
max_core_num = ci->core_count;
for (i = 0; i < max_core_num; i++) {
+ if (rte_lcore_index(i) == -1)
+ continue;
+
if (ci->cd[i].global_enabled_cpus) {
if (rte_power_init(i) < 0)
RTE_LOG(ERR, POWER_MANAGER,
max_core_num = ci->core_count;
for (i = 0; i < max_core_num; i++) {
+ if (rte_lcore_index(i) == -1)
+ continue;
+
if (ci->cd[i].global_enabled_cpus) {
if (rte_power_exit(i) < 0) {
RTE_LOG(ERR, POWER_MANAGER, "Unable to shutdown power manager "