Find lowest device id with no attached device */
| 160 | |
| 161 | /* Find lowest device id with no attached device */ |
| 162 | static uint16_t |
| 163 | find_free_dev_id(void) |
| 164 | { |
| 165 | uint16_t i; |
| 166 | for (i = 0; i < RTE_BBDEV_MAX_DEVS; i++) { |
| 167 | if (rte_bbdev_devices[i].state == RTE_BBDEV_UNUSED) |
| 168 | return i; |
| 169 | } |
| 170 | return RTE_BBDEV_MAX_DEVS; |
| 171 | } |
| 172 | |
| 173 | struct rte_bbdev * |
| 174 | rte_bbdev_allocate(const char *name) |
no outgoing calls
no test coverage detected