[dpdk-dev] [EXT] Re: [PATCH 24/39] eventdev: add Rx adapter init in eventmode

Anoob Joseph anoobj at marvell.com
Tue Jun 11 05:45:47 CEST 2019


Hi Erik,

Please see inline.

Thanks,
Anoob

> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Carrillo, Erik G
> Sent: Monday, June 10, 2019 8:26 PM
> To: Anoob Joseph <anoobj at marvell.com>; Jerin Jacob Kollanukkaran
> <jerinj at marvell.com>; Rao, Nikhil <nikhil.rao at intel.com>; Gujjar,
> Abhinandan S <abhinandan.gujjar at intel.com>; Richardson, Bruce
> <bruce.richardson at intel.com>; De Lara Guarch, Pablo
> <pablo.de.lara.guarch at intel.com>
> Cc: Narayana Prasad Raju Athreya <pathreya at marvell.com>; dev at dpdk.org;
> Lukas Bartosik <lbartosik at marvell.com>; Pavan Nikhilesh Bhagavatula
> <pbhagavatula at marvell.com>; Hemant Agrawal
> <hemant.agrawal at nxp.com>; Nipun Gupta <nipun.gupta at nxp.com>; Van
> Haaren, Harry <harry.van.haaren at intel.com>; Mattias Rönnblom
> <mattias.ronnblom at ericsson.com>; Ma, Liang J <liang.j.ma at intel.com>
> Subject: [EXT] Re: [dpdk-dev] [PATCH 24/39] eventdev: add Rx adapter init in
> eventmode
> 
> External Email
> 
> ----------------------------------------------------------------------
> > -----Original Message-----
> > From: Anoob Joseph <anoobj at marvell.com>
> > Sent: Monday, June 3, 2019 12:32 PM
> > To: Jerin Jacob <jerinj at marvell.com>; Rao, Nikhil
> > <nikhil.rao at intel.com>; Carrillo, Erik G <erik.g.carrillo at intel.com>;
> > Gujjar, Abhinandan S <abhinandan.gujjar at intel.com>; Richardson, Bruce
> > <bruce.richardson at intel.com>; De Lara Guarch, Pablo
> > <pablo.de.lara.guarch at intel.com>
> > Cc: Anoob Joseph <anoobj at marvell.com>; Narayana Prasad
> > <pathreya at marvell.com>; dev at dpdk.org; Lukasz Bartosik
> > <lbartosik at marvell.com>; Pavan Nikhilesh <pbhagavatula at marvell.com>;
> > Hemant Agrawal <hemant.agrawal at nxp.com>; Nipun Gupta
> > <nipun.gupta at nxp.com>; Van Haaren, Harry
> <harry.van.haaren at intel.com>;
> > Mattias Rönnblom <mattias.ronnblom at ericsson.com>; Ma, Liang J
> > <liang.j.ma at intel.com>
> > Subject: [PATCH 24/39] eventdev: add Rx adapter init in eventmode
> >
> > Adding rx adapter conf. The helper init routine would be initializing
> > the rx adapter according to the conf.
> >
> > Signed-off-by: Anoob Joseph <anoobj at marvell.com>
> > Signed-off-by: Lukasz Bartosik <lbartosik at marvell.com>
> > ---
> 
> <...Snipped...>
> 
> > diff --git a/lib/librte_eventdev/rte_eventmode_helper_internal.h
> > b/lib/librte_eventdev/rte_eventmode_helper_internal.h
> > index 2a6cd90..9c68605 100644
> > --- a/lib/librte_eventdev/rte_eventmode_helper_internal.h
> > +++ b/lib/librte_eventdev/rte_eventmode_helper_internal.h
> > @@ -35,6 +35,12 @@
> >  /* Max event devices supported */
> >  #define EVENT_MODE_MAX_EVENT_DEVS RTE_EVENT_MAX_DEVS
> >
> > +/* Max Rx adapters supported */
> > +#define EVENT_MODE_MAX_RX_ADAPTERS RTE_EVENT_MAX_DEVS
> > +
> > +/* Max Rx adapter connections */
> > +#define EVENT_MODE_MAX_CONNECTIONS_PER_ADAPTER 16
> > +
> >  /* Max event queues supported per event device */  #define
> > EVENT_MODE_MAX_EVENT_QUEUES_PER_DEV
> > RTE_EVENT_MAX_QUEUES_PER_DEV
> >
> > @@ -50,12 +56,33 @@ struct eventdev_params {
> >  	uint8_t ev_queue_mode;
> >  };
> >
> 
> Should the struct below be named "rx_adapter_connection_info" since you
> add "tx_adapter_connection_info" in a later patch?

[Anoob] Yes. Will make this change in v2.

> 
> > +/* Rx adapter connection info */
> > +struct adapter_connection_info {
> > +	uint8_t ethdev_id;
> > +	uint8_t eventq_id;
> > +	int32_t ethdev_rx_qid;
> > +};
> > +
> > +/* Rx adapter conf */
> > +struct rx_adapter_conf {
> > +	int32_t eventdev_id;
> > +	int32_t adapter_id;
> > +	uint32_t rx_core_id;
> > +	uint8_t nb_connections;
> > +	struct adapter_connection_info
> > +
> > 	conn[EVENT_MODE_MAX_CONNECTIONS_PER_ADAPTER];
> > +};
> > +
> 
> <...Snipped...>
> 
> Regards,
> Erik


More information about the dev mailing list