@@ -3129,9 +3129,8 @@ reconfigure_pmd_threads(struct dp_netdev *dp)
/* Destroy the old and recreate the new pmd threads. We don't perform an
* incremental update because we would have to adjust 'static_tx_qid'. */
if (changed) {
- struct ovs_numa_dump *all_numas;
struct ovs_numa_info_core *core;
- struct ovs_numa_info_core *numa;
+ struct ovs_numa_info_numa *numa;
/* Do not destroy the non pmd thread. */
dp_netdev_destroy_all_pmds(dp, false);
@@ -3144,23 +3143,10 @@ reconfigure_pmd_threads(struct dp_netdev *dp)
}
/* Log the number of pmd threads per numa node. */
- all_numas = ovs_numa_dump_n_cores_per_numa(1);
-
- FOR_EACH_CORE_ON_DUMP(numa, all_numas) {
- int n = 0;
-
- FOR_EACH_CORE_ON_DUMP(core, pmd_cores) {
- if (core->numa_id == numa->numa_id) {
- n++;
- }
- }
-
- if (n) {
- VLOG_INFO("Created %d pmd threads on numa node %d",
- n, numa->numa_id);
- }
+ FOR_EACH_NUMA_ON_DUMP (numa, pmd_cores) {
+ VLOG_INFO("Created %"PRIuSIZE" pmd threads on numa node %d",
+ numa->n_cores, numa->numa_id);
}
- ovs_numa_dump_destroy(all_numas);
}
ovs_numa_dump_destroy(pmd_cores);