a0fd91cefc
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>
45 lines
878 B
Plaintext
45 lines
878 B
Plaintext
DPDK_2.0 {
|
|
global:
|
|
|
|
rte_mempool_audit;
|
|
rte_mempool_calc_obj_size;
|
|
rte_mempool_count;
|
|
rte_mempool_create;
|
|
rte_mempool_dump;
|
|
rte_mempool_list_dump;
|
|
rte_mempool_lookup;
|
|
rte_mempool_walk;
|
|
rte_mempool_xmem_create;
|
|
rte_mempool_xmem_size;
|
|
rte_mempool_xmem_usage;
|
|
|
|
local: *;
|
|
};
|
|
|
|
DPDK_16.07 {
|
|
global:
|
|
|
|
rte_mempool_avail_count;
|
|
rte_mempool_cache_create;
|
|
rte_mempool_cache_flush;
|
|
rte_mempool_cache_free;
|
|
rte_mempool_check_cookies;
|
|
rte_mempool_create_empty;
|
|
rte_mempool_default_cache;
|
|
rte_mempool_free;
|
|
rte_mempool_generic_get;
|
|
rte_mempool_generic_put;
|
|
rte_mempool_in_use_count;
|
|
rte_mempool_mem_iter;
|
|
rte_mempool_obj_iter;
|
|
rte_mempool_ops_table;
|
|
rte_mempool_populate_anon;
|
|
rte_mempool_populate_default;
|
|
rte_mempool_populate_phys;
|
|
rte_mempool_populate_phys_tab;
|
|
rte_mempool_populate_virt;
|
|
rte_mempool_register_ops;
|
|
rte_mempool_set_ops_byname;
|
|
|
|
} DPDK_2.0;
|