From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 1/1] jobstats: added function abort for job Date: Mon, 29 Feb 2016 11:21:56 +0100 Message-ID: <2175407.ng3Fnlb5a0@xps13> References: <1454081497-13015-1-git-send-email-marcinx.kerlin@intel.com> <1455293081-13094-1-git-send-email-marcinx.kerlin@intel.com> <56C321DD.6080906@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Marcin Kerlin Return-path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id AD8406C9C for ; Mon, 29 Feb 2016 11:23:34 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id l68so51769018wml.1 for ; Mon, 29 Feb 2016 02:23:34 -0800 (PST) In-Reply-To: <56C321DD.6080906@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-02-16 13:19, Zhang, Roy Fan: > > On 12/02/2016 16:04, 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 occurs, > > condition is defined by the application for example when receiving n>0 packets. > > Example of usage is added to the example l2fwd-jobstats. At maximum load do-while > > loop inside Idle job will be execute once because one or more jobs waiting to be > > executed, so this time should not be include as the execution time by calling > > rte_jobstats_abort(). > > > > v2: > > * removed redundant field > > v3: > > * added an example of using > > > > Signed-off-by: Marcin Kerlin [...] > > --- a/lib/librte_jobstats/rte_jobstats_version.map > > +++ b/lib/librte_jobstats/rte_jobstats_version.map > > @@ -17,3 +17,10 @@ DPDK_2.0 { > > > > local: *; > > }; > > + > > +DPDK_2.3 { updated to 16.04 > > + global: > > + > > + rte_jobstats_abort; > > + > > +} DPDK_2.0; > > Acked-by : Fan Zhang Applied, thanks