[dpdk-dev] [PATCH v5] mempool: return 0 if area is too small on populate

Andrew Rybchenko arybchenko at solarflare.com
Mon May 4 14:54:48 CEST 2020


On 5/4/20 3:49 PM, Olivier Matz wrote:
> 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 at 6wind.com>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>

Acked-by: Andrew Rybchenko <arybchenko at solarflare.com>


More information about the dev mailing list