> -----Original Message-----
> From: dev <[email protected]> On Behalf Of Guy Kaneti
> Sent: Tuesday, April 21, 2020 2:12 PM
> To: Ori Kam <[email protected]>; Jerin Jacob Kollanukkaran
> <[email protected]>; [email protected]
> Cc: [email protected]; Pavan Nikhilesh Bhagavatula
> <[email protected]>; Shahaf Shuler <[email protected]>;
> [email protected]; Opher Reviv <[email protected]>; Alex
> Rosenbaum <[email protected]>; Dovrat Zifroni <[email protected]>;
> Prasun Kapoor <[email protected]>; [email protected];
> [email protected]; [email protected]; [email protected];
> [email protected]; [email protected];
> [email protected]; [email protected]; [email protected];
> [email protected]; [email protected];
> [email protected]; [email protected];
> [email protected]; [email protected]; [email protected];
> [email protected]; [email protected]; [email protected];
> [email protected]; [email protected]; Thomas Monjalon
> <[email protected]>
> Subject: Re: [dpdk-dev] [PATCH v2 4/4] regexdev: implement regex rte level
> functions
>
> 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?
Yes,
Best,
Ori