| 59 | } |
| 60 | |
| 61 | void * |
| 62 | rte_pci_dev_iterate(const void *start, |
| 63 | const char *str, |
| 64 | const struct rte_dev_iterator *it __rte_unused) |
| 65 | { |
| 66 | rte_bus_find_device_t find_device; |
| 67 | struct rte_kvargs *kvargs = NULL; |
| 68 | struct rte_device *dev; |
| 69 | |
| 70 | if (str != NULL) { |
| 71 | kvargs = rte_kvargs_parse(str, pci_params_keys); |
| 72 | if (kvargs == NULL) { |
| 73 | RTE_LOG(ERR, EAL, "cannot parse argument list\n"); |
| 74 | rte_errno = EINVAL; |
| 75 | return NULL; |
| 76 | } |
| 77 | } |
| 78 | find_device = rte_pci_bus.bus.find_device; |
| 79 | dev = find_device(start, pci_dev_match, kvargs); |
| 80 | rte_kvargs_free(kvargs); |
| 81 | return dev; |
| 82 | } |
| 83 | |
| 84 | int |
| 85 | rte_pci_devargs_parse(struct rte_devargs *da) |
nothing calls this directly
no test coverage detected