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
net/sfc: rename array of SW stats descriptions
[dpdk.git]
/
app
/
test
/
commands.c
diff --git
a/app/test/commands.c
b/app/test/commands.c
index
d48dd51
..
76f6ee5
100644
(file)
--- a/
app/test/commands.c
+++ b/
app/test/commands.c
@@
-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;
+}