[dpdk-dev] [RFC PATCH v5 1/5] eventtimer: introduce event timer adapter

Carrillo, Erik G erik.g.carrillo at intel.com
Wed Dec 6 17:23:38 CET 2017



> -----Original Message-----
> From: Jerin Jacob [mailto:jerin.jacob at caviumnetworks.com]
> Sent: Wednesday, December 6, 2017 9:18 AM
> To: Carrillo, Erik G <erik.g.carrillo at intel.com>
> Cc: pbhagavatula at caviumnetworks.com; dev at dpdk.org;
> nipun.gupta at nxp.com; hemant.agrawal at nxp.com
> Subject: Re: [RFC PATCH v5 1/5] eventtimer: introduce event timer adapter
> 
> -----Original Message-----
> > Date: Fri, 1 Dec 2017 14:00:54 -0600
> > From: Erik Gabriel Carrillo <erik.g.carrillo at intel.com>
> > To: pbhagavatula at caviumnetworks.com
> > CC: dev at dpdk.org, jerin.jacob at caviumnetworks.com,
> nipun.gupta at nxp.com,
> > hemant.agrawal at nxp.com
> > Subject: [RFC PATCH v5 1/5] eventtimer: introduce event timer adapter
> > X-Mailer: git-send-email 1.7.10
> >
> > Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo at intel.com>
> 
> Feel free to add my Signed-off-by as this patch is mostly based on initial RFC.

Ok, thanks.  Pavan, I'll add yours back as well... if you'd rather I don't, just let me know.

> 
> > ---
> >  doc/api/doxy-api-index.md                     |   1 +
> >  lib/librte_eventdev/Makefile                  |   1 +
> >  lib/librte_eventdev/rte_event_timer_adapter.h | 518
> ++++++++++++++++++++++++++
> >  lib/librte_eventdev/rte_eventdev.h            |   4 +-
> >  4 files changed, 522 insertions(+), 2 deletions(-)  create mode
> > 100644 lib/librte_eventdev/rte_event_timer_adapter.h
> >
> > + * Event timer state.
> > + */
> > +enum rte_event_timer_state {
> > +	RTE_EVENT_TIMER_NOT_ARMED = 0,
> > +	/**< Event timer is in not armed state.*/
> > +	RTE_EVENT_TIMER_ARMED = 1,
> > +	/**< Event timer successfully armed.*/
> 
> How about adding a state called RTE_EVENT_TIMER_CANCELED?, Which will
> updated by the driver on rte_event_timer_arm_burst().
> This will enable application to get the state of the rte_event_timer object in
> latter time.

Good catch - I didn't realize that state had been dropped.  I'll add it back in.

Thanks,
Gabriel

> 
> > +	RTE_EVENT_TIMER_ERROR = -1,
> > +	/**< Generic event timer error.*/
> > +	RTE_EVENT_TIMER_ERROR_TOOEARLY = -2,
> > +	/**< Event timer timeout tick is too little to add to the adapter. */
> > +	RTE_EVENT_TIMER_ERROR_TOOLATE = -3,
> > +	/**< Event timer timeout tick is greater than the maximum
> timeout.*/
> > +};
> > +
> > +/**


More information about the dev mailing list