add missing code to affinitize main_lcore from lcore configuration. Signed-off-by: Tyler Retzlaff <roret...@linux.microsoft.com> --- lib/eal/windows/eal.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/lib/eal/windows/eal.c b/lib/eal/windows/eal.c index ca3c41a..9c61780 100644 --- a/lib/eal/windows/eal.c +++ b/lib/eal/windows/eal.c @@ -401,6 +401,12 @@ enum rte_proc_type_t return -1; } + if (pthread_setaffinity_np(pthread_self(), sizeof(rte_cpuset_t), + &lcore_config[config->main_lcore].cpuset) != 0) { + rte_eal_init_alert("Cannot set affinity"); + rte_errno = EINVAL; + return -1; + } __rte_thread_init(config->main_lcore, &lcore_config[config->main_lcore].cpuset); -- 1.8.3.1