Re: [PATCH 2/2] mempool: turn functions into single-exit ones

2025-01-20 Thread Ariel Otilibili
Hi Konstantin, On Mon, Jan 20, 2025 at 12:44 AM Konstantin Ananyev < konstantin.anan...@huawei.com> wrote: > > > > Some functions did not set rte_errno; for avoiding that, they are turned > > into single-exit ones. > > > > Bugzilla ID: 1559 > > Signed-off-by: Ariel Otilibili > > But reading thro

RE: [PATCH 2/2] mempool: turn functions into single-exit ones

2025-01-19 Thread Konstantin Ananyev
> Some functions did not set rte_errno; for avoiding that, they are turned > into single-exit ones. > > Bugzilla ID: 1559 > Signed-off-by: Ariel Otilibili But reading through public API comments none of these functions are expected to set rte_errno value. If rte_mempool_create_empty() forgets

[PATCH 2/2] mempool: turn functions into single-exit ones

2025-01-19 Thread Ariel Otilibili
Some functions did not set rte_errno; for avoiding that, they are turned into single-exit ones. Bugzilla ID: 1559 Signed-off-by: Ariel Otilibili --- lib/mempool/rte_mempool_ops.c | 38 ++- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/lib/mempool