diff options
Diffstat (limited to 'app/test-pmd/testpmd.c')
-rw-r--r-- | app/test-pmd/testpmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index e48cf8a1..a6d80f35 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -358,14 +358,14 @@ set_default_fwd_lcores_config(void) nb_lc = 0; for (i = 0; i < RTE_MAX_LCORE; i++) { + if (!rte_lcore_is_enabled(i)) + continue; sock_num = rte_lcore_to_socket_id(i) + 1; if (sock_num > max_socket) { if (sock_num > RTE_MAX_NUMA_NODES) rte_exit(EXIT_FAILURE, "Total sockets greater than %u\n", RTE_MAX_NUMA_NODES); max_socket = sock_num; } - if (!rte_lcore_is_enabled(i)) - continue; if (i == rte_get_master_lcore()) continue; fwd_lcores_cpuids[nb_lc++] = i; |