git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ethdev: deprecate port count function
[dpdk.git]
/
examples
/
l2fwd
/
main.c
diff --git
a/examples/l2fwd/main.c
b/examples/l2fwd/main.c
index
f8ca29c
..
6908435
100644
(file)
--- a/
examples/l2fwd/main.c
+++ b/
examples/l2fwd/main.c
@@
-545,7
+545,7
@@
main(int argc, char **argv)
/* convert to number of cycles */
timer_period *= rte_get_timer_hz();
- nb_ports = rte_eth_dev_count();
+ nb_ports = rte_eth_dev_count
_avail
();
if (nb_ports == 0)
rte_exit(EXIT_FAILURE, "No Ethernet ports - bye\n");