| 22 | RTE_LOG_REGISTER_DEFAULT(rte_regexdev_logtype, INFO); |
| 23 | |
| 24 | static uint16_t |
| 25 | regexdev_find_free_dev(void) |
| 26 | { |
| 27 | uint16_t i; |
| 28 | |
| 29 | for (i = 0; i < RTE_MAX_REGEXDEV_DEVS; i++) { |
| 30 | if (rte_regex_devices[i].state == RTE_REGEXDEV_UNUSED) |
| 31 | return i; |
| 32 | } |
| 33 | return RTE_MAX_REGEXDEV_DEVS; |
| 34 | } |
| 35 | |
| 36 | static struct rte_regexdev* |
| 37 | regexdev_allocated(const char *name) |
no outgoing calls
no test coverage detected