[spp] [PATCH 3/7] spp_vm: fix deprecated use of rte_eth_dev_count
Kenta Shinohara
shinohara.kenta at lab.ntt.co.jp
Tue Jun 19 13:37:16 CEST 2018
This patch is same as previous one.
Signed-off-by: Kenta Shinohara <shinohara.kenta 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);
--
2.15.1 (Apple Git-101)
More information about the spp
mailing list