[dpdk-dev] [PATCH v2 01/14] eal: expose rte_eal_using_phys_addrs

Shreyansh Jain shreyansh.jain at nxp.com
Mon Sep 18 12:47:08 CEST 2017


Hello Gaetan,

On Monday 18 September 2017 03:01 PM, Gaetan Rivet wrote:
> This function was previously private to the EAL layer.
> Other subsystems requires it, such as the PCI bus.
> 
> In order not to force other components to include stdbool, which is
> incompatible with several NIC drivers, the return type has
> been changed from bool to int.
> 
> Signed-off-by: Gaetan Rivet <gaetan.rivet at 6wind.com>
> ---

[...]

> diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c
> index 5279128..af8719b 100644
> --- a/lib/librte_eal/linuxapp/eal/eal_memory.c
> +++ b/lib/librte_eal/linuxapp/eal/eal_memory.c
> @@ -1542,7 +1542,7 @@ rte_eal_hugepage_attach(void)
>   	return -1;
>   }
>   
> -bool
> +int
>   rte_eal_using_phys_addrs(void)
>   {
>   	return phys_addrs_available;
> diff --git a/lib/librte_eal/linuxapp/eal/rte_eal_version.map b/lib/librte_eal/linuxapp/eal/rte_eal_version.map
> index 8c08b8d..f866b70 100644
> --- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map
> +++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map
> @@ -205,6 +205,7 @@ DPDK_17.08 {

This symbol should be added to 17.11, isn't it?

>   	rte_bus_find;
>   	rte_bus_find_by_device;
>   	rte_bus_find_by_name;
> +	rte_eal_using_phys_addrs;
>   	rte_log_get_level;
>   
>   } DPDK_17.05;
> 
-
Shreyansh


More information about the dev mailing list