* Determine whether all keys are valid or not by looking * into a list of valid keys. */
| 131 | * into a list of valid keys. |
| 132 | */ |
| 133 | static int |
| 134 | check_for_valid_keys(struct rte_kvargs *kvlist, |
| 135 | const char * const valid[]) |
| 136 | { |
| 137 | unsigned i, ret; |
| 138 | struct rte_kvargs_pair *pair; |
| 139 | |
| 140 | for (i = 0; i < kvlist->count; i++) { |
| 141 | pair = &kvlist->pairs[i]; |
| 142 | ret = is_valid_key(valid, pair->key); |
| 143 | if (!ret) |
| 144 | return -1; |
| 145 | } |
| 146 | return 0; |
| 147 | } |
| 148 | |
| 149 | /* |
| 150 | * Return the number of times a given arg_name exists in the key/value list. |
no test coverage detected