Hi,
> +int
> +rte_regexdev_is_valid_dev(uint16_t dev_id) {
> + if (dev_id >= RTE_MAX_REGEXDEV_DEVS ||
> + rte_regex_devices[dev_id].state != RTE_REGEXDEV_READY)
> + return 0;
> + return 1;
> +}
When is the state changed to RTE_REGEXDEV_READY?
Should the PMD change it at the end of probing?