[spp] [PATCH 3/7] spp_vm: fix deprecated use of rte_eth_dev_count

Yasufumi Ogawa ogawa.yasufumi at lab.ntt.co.jp
Thu Jun 21 12:52:31 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/vm/init.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/vm/init.c b/src/vm/init.c
> index fb9b7ec..7714b56 100644
> --- a/src/vm/init.c
> +++ b/src/vm/init.c
> @@ -102,7 +102,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 */
>   	mz = rte_memzone_lookup(MZ_PORT_INFO);
> 



More information about the spp mailing list