Do not override skip-cores if set in startup.conf
@@ -338,10 +338,8 @@ vlib_thread_init (vlib_main_t * vm)
avail_cpu = clib_bitmap_dup (tm->cpu_core_bitmap);
/* by default we skip core 0, unless it is the only one available */
- if (tm->skip_cores == ~0 && clib_bitmap_count_set_bits (avail_cpu) == 1)
- tm->skip_cores = 0;
- else
- tm->skip_cores = 1;
+ if (tm->skip_cores == ~0)
+ tm->skip_cores = (clib_bitmap_count_set_bits (avail_cpu) < 2) ? 0 : 1;
/* skip cores */
for (i = 0; i < tm->skip_cores; i++)
