[dpdk-dev] [PATCH v5 05/11] eal/mem: extract common code for dynamic memory allocation

Thomas Monjalon thomas at monjalon.net
Thu May 28 10:34:10 CEST 2020


25/05/2020 02:37, Dmitry Kozlyuk:
> Code in Linux EAL that supports dynamic memory allocation (as opposed to
> static allocation used by FreeBSD) is not OS-dependent and can be reused
> by Windows EAL. Move such code to a file compiled only for the OS that
> require it.
> 
> Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
> ---
> @@ -1943,7 +1633,7 @@ rte_eal_hugepage_init(void)
>  {
>  	return internal_config.legacy_mem ?
>  			eal_legacy_hugepage_init() :
> -			eal_hugepage_init();
> +			eal_dynmem_hugepage_init();

There is a compilation issue, building clang+shared:
	undefined reference to `eal_dynmem_hugepage_init'





More information about the dev mailing list