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
> 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
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
3 matches
Mail list logo