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
app/testpmd: fix forward port ids setting
[dpdk.git]
/
app
/
test-pmd
/
testpmd.c
diff --git
a/app/test-pmd/testpmd.c
b/app/test-pmd/testpmd.c
index
57a6f89
..
1f0d8f1
100644
(file)
--- a/
app/test-pmd/testpmd.c
+++ b/
app/test-pmd/testpmd.c
@@
-464,9
+464,10
@@
static void
set_default_fwd_ports_config(void)
{
portid_t pt_id;
set_default_fwd_ports_config(void)
{
portid_t pt_id;
+ int i = 0;
-
for (pt_id = 0; pt_id < nb_ports; pt_id++
)
- fwd_ports_ids[
pt_id
] = pt_id;
+
RTE_ETH_FOREACH_DEV(pt_id
)
+ fwd_ports_ids[
i++
] = pt_id;
nb_cfg_ports = nb_ports;
nb_fwd_ports = nb_ports;
nb_cfg_ports = nb_ports;
nb_fwd_ports = nb_ports;