Re: [dpdk-dev] [PATCH v7 3/6] lib: add bitrate statistics library

2017-01-17 Thread Remy Horton
On 17/01/2017 11:16, Van Haaren, Harry wrote: [..] +struct rte_stats_bitrates_s * +rte_stats_bitrate_create(void) +{ + return rte_zmalloc(NULL, sizeof(struct rte_stats_bitrates_s), + RTE_CACHE_LINE_SIZE); +} Is the socket relevant here? Perhaps pass socket_id to the functio

Re: [dpdk-dev] [PATCH v7 3/6] lib: add bitrate statistics library

2017-01-17 Thread Van Haaren, Harry
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Remy Horton > Sent: Monday, January 16, 2017 4:20 PM > To: dev@dpdk.org > Cc: Thomas Monjalon > Subject: [dpdk-dev] [PATCH v7 3/6] lib: add bitrate statistics library > > This patch adds a

[dpdk-dev] [PATCH v7 3/6] lib: add bitrate statistics library

2017-01-16 Thread Remy Horton
This patch adds a library that calculates peak and average data-rate statistics. For ethernet devices. These statistics are reported using the metrics library. Signed-off-by: Remy Horton --- MAINTAINERS| 4 + config/common_base