Skip to content

Commit

Permalink
eal/windows: mark memory config as complete
Browse files Browse the repository at this point in the history
[ upstream commit 40032e5e0787fb311cc89c45bd681740b0c9e266 ]

Memory configuration was not being marked as completed.
Add the missing call to rte_eal_init() for Windows.

This allows rte_thread_register to work on Windows and lcores_autotest
to be built and run Windows which also exercises the
rte_ctrl_thread_create API on Windows.

Fixes: 5c307ba ("eal: register non-EAL threads as lcores")

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
Tyler Retzlaff authored and bluca committed Feb 22, 2023
1 parent 62865fe commit 77f9d24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/librte_eal/windows/eal.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ rte_eal_init(int argc, char **argv)
*/
rte_eal_mp_remote_launch(sync_func, NULL, SKIP_MAIN);
rte_eal_mp_wait_lcore();

eal_mcfg_complete();

return fctret;
}

Expand Down

0 comments on commit 77f9d24

Please sign in to comment.