[PATCH V8] lib: set/get max memzone segments

Thomas Monjalon thomas at monjalon.net
Mon Jun 5 18:50:58 CEST 2023


05/06/2023 12:50, Ophir Munk:
> Currently, the max memzones count constat (RTE_MAX_MEMZONE) is used to
> decide how many memzones a DPDK application can have. This value could
> technically be changed by manually editing `rte_config.h` before
> compilation, but if DPDK is already compiled, that option is not useful.
> There are certain use cases that would benefit from making this value
> configurable.
> 
> This commit addresses the issue by adding a new API to set the max
> number of memzones before EAL initialization (while using the old
> constant as default value), as well as an API to get current maximum
> number of memzones.
> 
> Signed-off-by: Ophir Munk <ophirmu at nvidia.com>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
> Acked-by: Alok Prasad <palok at marvell.com>

Did minor changes in comments and function sorting.
Applied, thanks.





More information about the dev mailing list