[spp] [PATCH 4/7] spp_vf: fix deprecated use of rte_eth_dev_count

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


This patch is same as previous one.

Signed-off-by: Kenta Shinohara <shinohara.kenta at lab.ntt.co.jp>

---
 src/vf/spp_vf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vf/spp_vf.c b/src/vf/spp_vf.c
index fb45b83..32f25fd 100644
--- a/src/vf/spp_vf.c
+++ b/src/vf/spp_vf.c
@@ -774,7 +774,7 @@ set_nic_interface(void)
 	int nic_cnt = 0;
 
 	/* NIC Setting */
-	g_iface_info.num_nic = rte_eth_dev_count();
+	g_iface_info.num_nic = rte_eth_dev_count_avail();
 	if (g_iface_info.num_nic > RTE_MAX_ETHPORTS)
 		g_iface_info.num_nic = RTE_MAX_ETHPORTS;
 
-- 
2.15.1 (Apple Git-101)



More information about the spp mailing list