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
fix ethdev ports enumeration
[dpdk.git]
/
doc
/
guides
/
sample_app_ug
/
l2_forward_real_virtual.rst
diff --git
a/doc/guides/sample_app_ug/l2_forward_real_virtual.rst
b/doc/guides/sample_app_ug/l2_forward_real_virtual.rst
index
f02be05
..
c91f573
100644
(file)
--- a/
doc/guides/sample_app_ug/l2_forward_real_virtual.rst
+++ b/
doc/guides/sample_app_ug/l2_forward_real_virtual.rst
@@
-213,7
+213,7
@@
in the *DPDK Programmer's Guide* - Rel 1.4 EAR and the *DPDK API Reference*.
* Each logical core is assigned a dedicated TX queue on each port.
*/
-
for (portid = 0; portid < nb_ports; portid++
) {
+
RTE_ETH_FOREACH_DEV(portid
) {
/* skip ports that are not enabled */
if ((l2fwd_enabled_port_mask & (1 << portid)) == 0)