]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/config.c
app/testpmd: forbid actions on invalid port
[dpdk.git] / app / test-pmd / config.c
index 49be8199664b555862e7bb2c27b3ab66d11da015..ec53923e3be058604770173eb97c017af7e2419a 100644 (file)
@@ -384,6 +384,9 @@ port_infos_display(portid_t port_id)
 int
 port_id_is_invalid(portid_t port_id, enum print_warning warning)
 {
+       if (port_id == (portid_t)RTE_PORT_ALL)
+               return 0;
+
        if (ports[port_id].enabled)
                return 0;