| 18 | rte_spinlock_t eth_dev_cb_lock = RTE_SPINLOCK_INITIALIZER; |
| 19 | |
| 20 | uint16_t |
| 21 | eth_dev_to_id(const struct rte_eth_dev *dev) |
| 22 | { |
| 23 | if (dev == NULL) |
| 24 | return RTE_MAX_ETHPORTS; |
| 25 | return dev - rte_eth_devices; |
| 26 | } |
| 27 | |
| 28 | struct rte_eth_dev * |
| 29 | eth_find_device(const struct rte_eth_dev *start, rte_eth_cmp_t cmp, |
no outgoing calls
no test coverage detected