[PATCH v2 2/5] baseband/acc100: modify validation code for ACC101

Chautru, Nicolas nicolas.chautru at intel.com
Mon May 9 23:27:24 CEST 2022


Hi Tom,

> -----Original Message-----
> From: Tom Rix <trix at redhat.com>
> Sent: Sunday, May 8, 2022 6:07 AM
> To: Chautru, Nicolas <nicolas.chautru at intel.com>; dev at dpdk.org;
> gakhil at marvell.com
> Cc: thomas at monjalon.net; Kinsella, Ray <ray.kinsella at intel.com>; Richardson,
> Bruce <bruce.richardson at intel.com>; hemant.agrawal at nxp.com; Zhang,
> Mingshan <mingshan.zhang at intel.com>; david.marchand at redhat.com
> Subject: Re: [PATCH v2 2/5] baseband/acc100: modify validation code for
> ACC101
> 
> 
> On 4/27/22 11:17 AM, Nicolas Chautru wrote:
> > The validation requirement is different for the two devices.
> >
> > Signed-off-by: Nicolas Chautru <nicolas.chautru at intel.com>
> > ---
> >   drivers/baseband/acc100/rte_acc100_pmd.c | 40
> ++++++++++++++++++++++----------
> >   1 file changed, 28 insertions(+), 12 deletions(-)
> >
> > diff --git a/drivers/baseband/acc100/rte_acc100_pmd.c
> > b/drivers/baseband/acc100/rte_acc100_pmd.c
> > index fca27ef..daf2ce0 100644
> > --- a/drivers/baseband/acc100/rte_acc100_pmd.c
> > +++ b/drivers/baseband/acc100/rte_acc100_pmd.c
> > @@ -1293,6 +1293,14 @@
> >   	return (q->d->device_variant == ACC100_VARIANT);
> >   }
> >
> > +#ifdef RTE_LIBRTE_BBDEV_DEBUG
> > +static inline bool
> > +validate_op_required(struct acc100_queue *q)
> 
> There isn't an #else case so this will fail to build.

There is no else required I believe, since that function is not used when the RTE_LIBRTE_BBDEV_DEBUG is not set. It should build on both (I believe this is tested by CICD). 

> 
> This i believe could be another function in private data fops i suggested in the
> first patch.

In that case we do not expect to validate the input on ACC100, there is not such function. 

> 
> Tom
> 
> > +{
> > +	return is_acc100(q);
> > +}
> > +#endif
> > +



More information about the dev mailing list