| 26 | }; |
| 27 | |
| 28 | static int |
| 29 | pci_addr_kv_cmp(const char *key __rte_unused, |
| 30 | const char *value, |
| 31 | void *_addr2) |
| 32 | { |
| 33 | struct rte_pci_addr _addr1; |
| 34 | struct rte_pci_addr *addr1 = &_addr1; |
| 35 | struct rte_pci_addr *addr2 = _addr2; |
| 36 | |
| 37 | if (rte_pci_addr_parse(value, addr1)) |
| 38 | return -1; |
| 39 | return -abs(rte_pci_addr_cmp(addr1, addr2)); |
| 40 | } |
| 41 | |
| 42 | static int |
| 43 | pci_dev_match(const struct rte_device *dev, |
nothing calls this directly
no test coverage detected