eventdev/eth_rx: fix telemetry Rx stats reset
[dpdk.git] / examples / vm_power_manager / channel_manager.c
index 458e371..838465a 100644 (file)
@@ -21,7 +21,6 @@
 #include <rte_memory.h>
 #include <rte_mempool.h>
 #include <rte_log.h>
-#include <rte_atomic.h>
 #include <rte_spinlock.h>
 
 #include <libvirt/libvirt.h>
@@ -454,9 +453,6 @@ add_all_channels(const char *vm_name)
                                        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;
@@ -514,9 +510,6 @@ add_channels(const char *vm_name, unsigned *channel_list,
        }
 
        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 "
                                                        "0...%d\n", channel_list[i],