Re: [PATCH v11 2/6] mempool: add functions to get extra mempool info

2024-05-28 Thread Paul Szczepanek
On 24/05/2024 13:20, Morten Brørup wrote: >> From: Paul Szczepanek [mailto:paul.szczepa...@arm.com] >> Sent: Friday, 24 May 2024 10.37 >> >> +size_t rte_mempool_get_obj_alignment(struct rte_mempool *mp) >> +{ >> +if (mp == NULL) >> +return 0; >> + >> +if (mp->flags & RTE_MEMPO

RE: [PATCH v11 2/6] mempool: add functions to get extra mempool info

2024-05-24 Thread Morten Brørup
> From: Paul Szczepanek [mailto:paul.szczepa...@arm.com] > Sent: Friday, 24 May 2024 10.37 > > +size_t rte_mempool_get_obj_alignment(struct rte_mempool *mp) > +{ > + if (mp == NULL) > + return 0; > + > + if (mp->flags & RTE_MEMPOOL_F_NO_CACHE_ALIGN) > + return sizeo

[PATCH v11 2/6] mempool: add functions to get extra mempool info

2024-05-24 Thread Paul Szczepanek
Add two functions: - rte_mempool_get_mem_range - get virtual memory range of the objects in the mempool, - rte_mempool_get_obj_alignment - get alignment of objects in the mempool. Add two tests that test these new functions. Signed-off-by: Paul Szczepanek Reviewed-by: Jack Bond-Preston Reviewed