mempool: return 0 if area is too small on populate mempool_compat2
authorOlivier Matz <olivier.matz@6wind.com>
Sun, 26 Apr 2020 16:52:55 +0000 (18:52 +0200)
committerOlivier Matz <olivier.matz@6wind.com>
Mon, 4 May 2020 09:36:13 +0000 (11:36 +0200)
commit7e18a804e1a4c495a580598baad93149ec777220
tree1bcfd3afc84b37541becad0042fef09987aef09f
parent67d376e7fe7d4e4149d3591ed94cba33206e8cd2
mempool: return 0 if area is too small on populate

Change rte_mempool_populate_iova() and rte_mempool_populate_virt() to
return 0 instead of -EINVAL when there is not enough room to store one
object, as it can be helpful for applications to distinguish this
specific case.

As this is an ABI change, use symbol versioning to preserve old
behavior for binary applications.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
doc/guides/rel_notes/deprecation.rst
doc/guides/rel_notes/release_20_05.rst
examples/ntb/ntb_fwd.c
lib/librte_mempool/meson.build
lib/librte_mempool/rte_mempool.c
lib/librte_mempool/rte_mempool.h
lib/librte_mempool/rte_mempool_version.map