examples/vm_power: remove VM channel number check
authorReshma Pattan <reshma.pattan@intel.com>
Wed, 21 Apr 2021 10:45:34 +0000 (11:45 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 5 May 2021 21:43:22 +0000 (23:43 +0200)
VM channel number should not be validated against the
host vm_power_manager coremask core indexes, as VM
cores need not to be same as host cores.
So remove this check, to allow all the vm channels
to be added successfully.

Fixes: b49c677a0d24 ("examples/vm_power: respect core mask")
Cc: stable@dpdk.org
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reviewed-by: David Hunt <david.hunt@intel.com>
examples/vm_power_manager/channel_manager.c

index 458e371..fe91567 100644 (file)
@@ -454,9 +454,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 +511,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],