[dpdk-dev] [PATCH v1] app/regex: configure qp according to device capabilities
Ophir Munk
ophirmu at nvidia.com
Thu Oct 22 12:53:12 CEST 2020
Hi Guy,
I could not find RTE_REGEXDEV_CAPA_QUEUE_PAIR_OOS_F defined in latest dpdk/main. As a result my compilation is broken.
Can you please assist?
Regards,
Ophir
> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Ori Kam
> Sent: Tuesday, October 20, 2020 12:14 PM
> To: guyk at marvell.com
> Cc: NBU-Contact-Thomas Monjalon <thomas at monjalon.net>;
> smadarf at marvell.com; dovrat at marvell.com; dev at dpdk.org
> Subject: Re: [dpdk-dev] [PATCH v1] app/regex: configure qp according to
> device capabilities
>
>
> Hi Guy,
>
> > -----Original Message-----
> > From: guyk at marvell.com <guyk at marvell.com>
> > Sent: Tuesday, October 20, 2020 12:10 PM
> > Subject: [PATCH v1] app/regex: configure qp according to device
> > capabilities
> >
> > From: Guy Kaneti <guyk at marvell.com>
> >
> > configure qp with OOS according to device capabilities returned from
> > rte_regexdev_info_get.
> >
> > Signed-off-by: Guy Kaneti <guyk at marvell.com>
> > ---
> > app/test-regex/main.c | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/app/test-regex/main.c b/app/test-regex/main.c index
> > e6080b44b..3deaf3c80 100644
> > --- a/app/test-regex/main.c
> > +++ b/app/test-regex/main.c
> > @@ -173,7 +173,7 @@ init_port(struct rte_mempool **mbuf_mp,
> uint32_t
> > nb_jobs,
> > };
> > struct rte_regexdev_qp_conf qp_conf = {
> > .nb_desc = 1024,
> > - .qp_conf_flags = RTE_REGEX_QUEUE_PAIR_CFG_OOS_F,
> > + .qp_conf_flags = 0,
> > };
> > int res = 0;
> >
> > @@ -218,6 +218,8 @@ init_port(struct rte_mempool **mbuf_mp,
> uint32_t
> > nb_jobs,
> > printf("Error, can't configure device %d.\n", id);
> > goto error;
> > }
> > + if (info.regexdev_capa &
> > RTE_REGEXDEV_CAPA_QUEUE_PAIR_OOS_F)
> > + qp_conf.qp_conf_flags |=
> > RTE_REGEX_QUEUE_PAIR_CFG_OOS_F;
> > res = rte_regexdev_queue_pair_setup(id, 0, &qp_conf);
> > if (res < 0) {
> > printf("Error, can't setup queue pair for device
> %d.\n",
> > --
> > 2.28.0
>
> Acked-by: Ori Kam <orika at nvidia.com>
> Best,
> Ori
More information about the dev
mailing list