[PATCH] eal: initialize shared plugins on Windows
Tyler Retzlaff
roretzla at linux.microsoft.com
Thu Dec 7 20:43:43 CET 2023
On Thu, Dec 07, 2023 at 11:20:51AM -0800, Tyler Retzlaff wrote:
> When EAL is built with MSVC it is possible to dynamically load plugins
> on Windows. Hook eal_plugins_init into rte_eal_init if built with MSVC
> and provide code to load plugins on Windows.
>
> Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
> ---
> lib/eal/common/eal_common_options.c | 92 ++++++++++++++++++++++++++++++-------
> lib/eal/windows/eal.c | 8 ++++
> 2 files changed, 84 insertions(+), 16 deletions(-)
>
> diff --git a/lib/eal/common/eal_common_options.c b/lib/eal/common/eal_common_options.c
> index a6d21f1..3f9a030 100644
> --- a/lib/eal/common/eal_common_options.c
> +++ b/lib/eal/common/eal_common_options.c
> @@ -18,9 +18,7 @@
> #include <libgen.h>
> #endif
> #include <sys/stat.h>
> -#ifndef RTE_EXEC_ENV_WINDOWS
> #include <dirent.h>
> -#endif
>
> #include <rte_string_fns.h>
> #include <rte_eal.h>
> @@ -74,7 +72,7 @@
> {OPT_HELP, 0, NULL, OPT_HELP_NUM },
> {OPT_HUGE_DIR, 1, NULL, OPT_HUGE_DIR_NUM },
> {OPT_HUGE_UNLINK, 2, NULL, OPT_HUGE_UNLINK_NUM },
> - {OPT_IOVA_MODE, 1, NULL, OPT_IOVA_MODE_NUM },
> + {OPT_IOVA_MODE, 1, NULL, OPT_IOVA_MODE_NUM },
accidentally converted 8 spaces to a tab here, will submit a new version
to remove the change from this series (or maintainer can adjust).
thanks
More information about the dev
mailing list