aboutsummaryrefslogtreecommitdiffstats
path: root/examples/netmap_compat/bridge/bridge.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/netmap_compat/bridge/bridge.c')
-rw-r--r--examples/netmap_compat/bridge/bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/netmap_compat/bridge/bridge.c b/examples/netmap_compat/bridge/bridge.c
index 59c5e436..cb1882e6 100644
--- a/examples/netmap_compat/bridge/bridge.c
+++ b/examples/netmap_compat/bridge/bridge.c
@@ -236,7 +236,7 @@ int main(int argc, char *argv[])
if (ports.num == 0)
rte_exit(EXIT_FAILURE, "no ports specified\n");
- if (rte_eth_dev_count() < 1)
+ if (rte_eth_dev_count_avail() < 1)
rte_exit(EXIT_FAILURE, "Not enough ethernet ports available\n");
pool = rte_pktmbuf_pool_create("mbuf_pool", MBUF_PER_POOL, 32, 0,