[spp] [PATCH 2/7] spp_primary: fix deprecated use of rte_eth_dev_count

Yasufumi Ogawa ogawa.yasufumi at lab.ntt.co.jp
Thu Jun 21 12:52:07 CEST 2018


On 2018/06/19 20:37, Kenta Shinohara wrote:
> This patch is same as previous one.
> 
> Signed-off-by: Kenta Shinohara <shinohara.kenta at lab.ntt.co.jp>
Thanks!

Acked-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
> 
> ---
>   src/primary/init.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/primary/init.c b/src/primary/init.c
> index 2630783..5c9f15c 100644
> --- a/src/primary/init.c
> +++ b/src/primary/init.c
> @@ -145,7 +145,7 @@ init(int argc, char *argv[])
>   	argv += retval;
>   
>   	/* get total number of ports */
> -	total_ports = rte_eth_dev_count();
> +	total_ports = rte_eth_dev_count_avail();
>   
>   	/* set up array for port data */
>   	if (rte_eal_process_type() == RTE_PROC_SECONDARY) {
> 



More information about the spp mailing list