numam-dpdk/examples/multi_process/l2fwd_fork
Bruce Richardson a0fd91cefc mempool: rename functions with confusing names
The mempool_count and mempool_free_count behaved contrary to what their
names suggested. The free_count function actually returned the number of
elements that were allocated from the pool, not the number unallocated as
the name implied.

Fix this by introducing two new functions to replace the old ones,
* rte_mempool_avail_count to replace rte_mempool_count
* rte_mempool_in_use_count to replace rte_mempool_free_count

In this patch, the new functions are added, and the old ones are marked
as deprecated. All apps and examples that use the old functions are
updated to use the new functions.

Fixes: af75078fec ("first public release")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2016-07-01 12:35:57 +02:00
..
flib.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
flib.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
main.c mempool: rename functions with confusing names 2016-07-01 12:35:57 +02:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00