app/testpmd: use ethdev iterator to list devices
[dpdk.git] / app / test-pmd / cmdline_flow.c
index 2149df4..4e99f0f 100644 (file)
@@ -2416,7 +2416,7 @@ comp_port(struct context *ctx, const struct token *token,
 
        (void)ctx;
        (void)token;
-       FOREACH_PORT(p, ports) {
+       RTE_ETH_FOREACH_DEV(p) {
                if (buf && i == ent)
                        return snprintf(buf, size, "%u", p);
                ++i;