| 34 | } |
| 35 | |
| 36 | static struct rte_regexdev* |
| 37 | regexdev_allocated(const char *name) |
| 38 | { |
| 39 | uint16_t i; |
| 40 | |
| 41 | for (i = 0; i < RTE_MAX_REGEXDEV_DEVS; i++) { |
| 42 | if (rte_regex_devices[i].state != RTE_REGEXDEV_UNUSED) |
| 43 | if (!strcmp(name, rte_regex_devices[i].data->dev_name)) |
| 44 | return &rte_regex_devices[i]; |
| 45 | } |
| 46 | return NULL; |
| 47 | } |
| 48 | |
| 49 | static int |
| 50 | regexdev_shared_data_prepare(void) |
no test coverage detected