numam-dpdk/examples
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
..
bond examples/bond: fix FreeBSD build 2015-12-07 03:21:13 +01:00
cmdline examples: fix whitespace 2015-06-12 11:10:10 +02:00
distributor examples/distributor: check mempool error 2016-05-16 21:01:51 +02:00
dpdk_qat examples: remove useless check of port count 2016-05-16 21:01:51 +02:00
ethtool mk: fix internal dependencies 2016-06-29 13:33:01 +02:00
exception_path examples/exception_path: fix shift operation in lcore setup 2016-04-27 17:41:46 +02:00
helloworld tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
ip_fragmentation examples: fix duplicated lpm6 name 2016-06-15 16:29:18 +02:00
ip_pipeline examples/ip_pipeline: support KNI 2016-06-21 18:05:45 +02:00
ip_reassembly examples: fix duplicated lpm6 name 2016-06-15 16:29:18 +02:00
ipsec-secgw examples/ipsec-secgw: support transport mode 2016-06-21 12:12:09 +02:00
ipv4_multicast eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
kni examples: remove useless check of port count 2016-05-16 21:01:51 +02:00
l2fwd examples/l2fwd: increase mempool cache size for performance 2016-06-08 22:38:52 +02:00
l2fwd-cat examples/l2fwd-cat: add sample application for PQoS CAT and CDP 2016-03-21 23:36:43 +01:00
l2fwd-crypto crypto/kasumi: add driver for KASUMI library 2016-06-20 22:25:32 +02:00
l2fwd-ivshmem examples: remove useless check of port count 2016-05-16 21:01:51 +02:00
l2fwd-jobstats examples/l2fwd-jobstats: fix a typo 2016-06-08 22:38:52 +02:00
l2fwd-keepalive examples/l2fwd-keepalive: fix memory leak 2016-06-21 15:56:39 +02:00
l3fwd examples/l3fwd: report error when no vector engine available 2016-06-08 22:38:52 +02:00
l3fwd-acl examples: remove useless check of port count 2016-05-16 21:01:51 +02:00
l3fwd-power examples: remove useless check of port count 2016-05-16 21:01:51 +02:00
l3fwd-vf examples: remove useless check of port count 2016-05-16 21:01:51 +02:00
link_status_interrupt examples: remove useless check of port count 2016-05-16 21:01:51 +02:00
load_balancer ethdev: use constants for link state 2016-04-01 21:38:34 +02:00
multi_process mempool: rename functions with confusing names 2016-07-01 12:35:57 +02:00
netmap_compat examples/netmap_compat: fix infinite loop 2016-05-16 21:01:51 +02:00
packet_ordering examples: remove useless debug flags 2016-05-02 15:31:17 +02:00
performance-thread examples/performance-thread: fix size of destination port ids 2016-06-08 22:38:52 +02:00
ptpclient mk: fix missing librt dependencies 2016-03-22 20:46:53 +01:00
qos_meter examples/qos_meter: check flow configuration error 2016-05-16 18:49:12 +02:00
qos_sched mempool: rename functions with confusing names 2016-07-01 12:35:57 +02:00
quota_watermark examples/quota_watermark: fix memory overflow 2016-06-08 22:38:52 +02:00
rxtx_callbacks apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
skeleton apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
tep_termination vhost: add vhost-user client mode 2016-06-22 09:47:07 +02:00
timer tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
vhost examples/vhost: add client option 2016-06-22 09:47:12 +02:00
vhost_xen eal: fix thread naming on FreeBSD 2016-06-17 18:04:22 +02:00
vm_power_manager examples/vm_power_manager: ensure domain name is null terminated 2016-05-16 14:48:09 +02:00
vmdq examples: remove useless check of port count 2016-05-16 21:01:51 +02:00
vmdq_dcb examples: remove useless check of port count 2016-05-16 21:01:51 +02:00
Makefile examples/l2fwd-keepalive: add IPC liveness reporting 2016-06-16 18:27:00 +02:00