| 21 | }; |
| 22 | |
| 23 | static int |
| 24 | auxiliary_dev_match(const struct rte_device *dev, |
| 25 | const void *_kvlist) |
| 26 | { |
| 27 | const struct rte_kvargs *kvlist = _kvlist; |
| 28 | const char *key = auxiliary_params_keys[RTE_AUXILIARY_PARAM_NAME]; |
| 29 | const char *name; |
| 30 | |
| 31 | /* no kvlist arg, all devices match */ |
| 32 | if (kvlist == NULL) |
| 33 | return 0; |
| 34 | |
| 35 | /* if key is present in kvlist and does not match, filter device */ |
| 36 | name = rte_kvargs_get(kvlist, key); |
| 37 | if (name != NULL && strcmp(name, dev->name)) |
| 38 | return -1; |
| 39 | |
| 40 | return 0; |
| 41 | } |
| 42 | |
| 43 | void * |
| 44 | auxiliary_dev_iterate(const void *start, |
nothing calls this directly
no test coverage detected