| 41 | } |
| 42 | |
| 43 | void * |
| 44 | auxiliary_dev_iterate(const void *start, |
| 45 | const char *str, |
| 46 | const struct rte_dev_iterator *it __rte_unused) |
| 47 | { |
| 48 | rte_bus_find_device_t find_device; |
| 49 | struct rte_kvargs *kvargs = NULL; |
| 50 | struct rte_device *dev; |
| 51 | |
| 52 | if (str != NULL) { |
| 53 | kvargs = rte_kvargs_parse(str, auxiliary_params_keys); |
| 54 | if (kvargs == NULL) { |
| 55 | AUXILIARY_LOG(ERR, "cannot parse argument list %s", |
| 56 | str); |
| 57 | rte_errno = EINVAL; |
| 58 | return NULL; |
| 59 | } |
| 60 | } |
| 61 | find_device = auxiliary_bus.bus.find_device; |
| 62 | dev = find_device(start, auxiliary_dev_match, kvargs); |
| 63 | rte_kvargs_free(kvargs); |
| 64 | return dev; |
| 65 | } |
nothing calls this directly
no test coverage detected