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

Kenta Shinohara shinohara.kenta at lab.ntt.co.jp
Tue Jun 19 13:37:15 CEST 2018


This patch is same as previous one.

Signed-off-by: Kenta Shinohara <shinohara.kenta 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) {
-- 
2.15.1 (Apple Git-101)



More information about the spp mailing list