[dpdk-dev] [PATCH V1 1/1] jobstats: added function abort for job

Jastrzebski, MichalX K michalx.k.jastrzebski at intel.com
Wed Jan 27 16:57:42 CET 2016


> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Panu Matilainen
> Sent: Wednesday, January 27, 2016 2:38 PM
> To: Kerlin, MarcinX <marcinx.kerlin at intel.com>; dev at dpdk.org
> Subject: Re: [dpdk-dev] [PATCH V1 1/1] jobstats: added function abort for job
> 
> On 01/26/2016 06:15 PM, Marcin Kerlin wrote:
> > This patch adds new function rte_jobstats_abort. It marks *job* as finished
> > and time of this work will be add to management time instead of execution
> time.
> > This function should be used instead of rte_jobstats_finish if condition
> occure,
> > condition is defined by the application for example when receiving n>0
> packets.
> >
> > Signed-off-by: Marcin Kerlin <marcinx.kerlin at intel.com>
> > ---
> >   lib/librte_jobstats/rte_jobstats.c           | 22 ++++++++++++++++++++++
> >   lib/librte_jobstats/rte_jobstats.h           | 17 +++++++++++++++++
> >   lib/librte_jobstats/rte_jobstats_version.map |  7 +++++++
> >   3 files changed, 46 insertions(+)
> >
> [...]
> > diff --git a/lib/librte_jobstats/rte_jobstats.h
> b/lib/librte_jobstats/rte_jobstats.h
> > index de6a89a..9995319 100644
> > --- a/lib/librte_jobstats/rte_jobstats.h
> > +++ b/lib/librte_jobstats/rte_jobstats.h
> > @@ -90,6 +90,9 @@ struct rte_jobstats {
> >   	uint64_t exec_cnt;
> >   	/**< Execute count. */
> >
> > +	uint64_t last_job_time;
> > +	/**< Last job time */
> > +
> >   	char name[RTE_JOBSTATS_NAMESIZE];
> >   	/**< Name of this job */
> >
> 
> AFAICS this is an ABI break and as such, needs to be preannounced, see
> http://dpdk.org/doc/guides/contributing/versioning.html
> For 2.3 it'd need to be a CONFIG_RTE_NEXT_ABI feature.
> 
> 	- Panu -

Hi Panu,
Thanks for Your notice. This last_job_time field is actually not necessary here
and will be removed from this structure.

Best regards
Michal 


More information about the dev mailing list