mempool: deprecate specific get and put functions
authorLazaros Koromilas <l@nofutznetworks.com>
Tue, 28 Jun 2016 23:47:36 +0000 (00:47 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 30 Jun 2016 09:28:10 +0000 (11:28 +0200)
commit656f2d3ede96902202a1a5ffa22870289cf6a9db
treeaa2761af7692e07568d59645f222a1f8e6ecd9f4
parentbe52da5dbd01f6211582d71153eeac6918633952
mempool: deprecate specific get and put functions

This commit introduces the API calls:

    rte_mempool_generic_put(mp, obj_table, n, is_mp)
    rte_mempool_generic_get(mp, obj_table, n, is_mc)

Deprecates the API calls:

    rte_mempool_mp_put_bulk(mp, obj_table, n)
    rte_mempool_sp_put_bulk(mp, obj_table, n)
    rte_mempool_mp_put(mp, obj)
    rte_mempool_sp_put(mp, obj)
    rte_mempool_mc_get_bulk(mp, obj_table, n)
    rte_mempool_sc_get_bulk(mp, obj_table, n)
    rte_mempool_mc_get(mp, obj_p)
    rte_mempool_sc_get(mp, obj_p)

We also check cookies in one place now.

Signed-off-by: Lazaros Koromilas <l@nofutznetworks.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
app/test/test_mempool.c
doc/guides/rel_notes/deprecation.rst
lib/librte_mempool/rte_mempool.h
lib/librte_mempool/rte_mempool_version.map