mempool: limit cache size
authorZoltan Kiss <zoltan.kiss@linaro.org>
Mon, 18 May 2015 15:35:14 +0000 (16:35 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 20 May 2015 08:46:08 +0000 (10:46 +0200)
commit462321b44a801493ce2eb67bd73564e509a82f45
tree48c5db2ad114dcf90bc3ff96d3770f3875c5db7f
parentb96250c0896e975d3a9f1d28619894faac606066
mempool: limit cache size

Otherwise cache_flushthresh can be bigger than n, and
a consumer can starve others by keeping every element
either in use or in the cache.

Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mempool/rte_mempool.c
lib/librte_mempool/rte_mempool.h