[dpdk-dev] [PATCH v2 4/4] regexdev: implement regex rte level functions

Guy Kaneti guyk at marvell.com
Tue Apr 21 13:12:27 CEST 2020


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?


More information about the dev mailing list