RE: [RFC PATCH] mempool: Fix some Coverity defects

2025-06-09 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, 9 June 2025 17.26 > > On Mon, 9 Jun 2025 14:42:26 + > Morten Brørup wrote: > > > @@ -141,8 +141,13 @@ rte_mem_page_size(void) > > { > > static size_t page_size; > > > > - if (!page_size) > > + if (page_si

[RFC PATCH] mempool: Fix some Coverity defects

2025-06-09 Thread Morten Brørup
Coverity reports some issues regarding the mempool library. I have tried fixing them. How to test if Coverity is satisfied with these fixes? Function rte_mem_page_size() returns a negative number. This seems to be the root cause of the following mempool defects. And since the function is used else