]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/cmdline_flow.c
app/testpmd: use ethdev iterator to list devices
[dpdk.git] / app / test-pmd / cmdline_flow.c
index 2149df496d545578d250a383f890232eea2ccb54..4e99f0f7a1102e7ea18549be3bbf709b9f06fe87 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;