net/sfc: rename array of SW stats descriptions
[dpdk.git] / app / test / commands.c
index d48dd51..76f6ee5 100644 (file)
@@ -381,3 +381,14 @@ int commands_init(void)
        cmd_autotest_autotest.string_data.str = commands;
        return 0;
 }
+
+int command_valid(const char *cmd)
+{
+       struct test_command *t;
+
+       TAILQ_FOREACH(t, &commands_list, next) {
+               if (strcmp(t->command, cmd) == 0)
+                       return 1;
+       }
+       return 0;
+}