[dpdk-dev] [PATCH v3] pipeline: add statistics for librte_pipeline ports and tables

2015-05-27 Thread Thomas Monjalon
2015-05-26 07:57, Stephen Hemminger: > On Tue, 26 May 2015 15:39:18 +0200 > Maciej Gajdzica wrote: > > > +#if RTE_LOG_LEVEL == RTE_LOG_DEBUG > > +#define RTE_PIPELINE_STATS_ADD(counter, val) \ > > + ({ (counter) += (val); }) > > + > > +#define RTE_PIPELINE_STATS_ADD_M(counter, mask) \ > > + (

[dpdk-dev] [PATCH v3] pipeline: add statistics for librte_pipeline ports and tables

2015-05-26 Thread Dumitrescu, Cristian
> > > Sent: Tuesday, May 26, 2015 3:57 PM > > > To: Gajdzica, MaciejX T > > > Cc: dev at dpdk.org > > > Subject: Re: [dpdk-dev] [PATCH v3] pipeline: add statistics for > librte_pipeline > > > ports and tables > > > > > > On Tue, 26

[dpdk-dev] [PATCH v3] pipeline: add statistics for librte_pipeline ports and tables

2015-05-26 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen > Hemminger > Sent: Tuesday, May 26, 2015 3:57 PM > To: Gajdzica, MaciejX T > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3] pipeline: add statistics for > librte_pip

[dpdk-dev] [PATCH v3] pipeline: add statistics for librte_pipeline ports and tables

2015-05-26 Thread Maciej Gajdzica
This patch adds statistics collection for librte_pipeline. Those statistics ale disabled by default during build time. Signed-off-by: Pawel Wodkowski --- lib/librte_pipeline/rte_pipeline.c | 185 +--- lib/librte_pipeline/rte_pipeline.h | 98 +++

[dpdk-dev] [PATCH v3] pipeline: add statistics for librte_pipeline ports and tables

2015-05-26 Thread Stephen Hemminger
iejX T > > Cc: dev at dpdk.org > > Subject: Re: [dpdk-dev] [PATCH v3] pipeline: add statistics for > > librte_pipeline > > ports and tables > > > > On Tue, 26 May 2015 15:39:18 +0200 > > Maciej Gajdzica wrote: > > > > > +#if RTE_LOG_LE

[dpdk-dev] [PATCH v3] pipeline: add statistics for librte_pipeline ports and tables

2015-05-26 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Maciej Gajdzica > Sent: Tuesday, May 26, 2015 2:39 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3] pipeline: add statistics for librte_pipeline > ports and tables > > Th

[dpdk-dev] [PATCH v3] pipeline: add statistics for librte_pipeline ports and tables

2015-05-26 Thread Stephen Hemminger
On Tue, 26 May 2015 15:39:18 +0200 Maciej Gajdzica wrote: > +#if RTE_LOG_LEVEL == RTE_LOG_DEBUG > +#define RTE_PIPELINE_STATS_ADD(counter, val) \ > + ({ (counter) += (val); }) > + > +#define RTE_PIPELINE_STATS_ADD_M(counter, mask) \ > + ({ (counter) += __builtin_popcountll(mask); }) > +#e