[RFC] lib: set/get max memzone segments
Stephen Hemminger
stephen at networkplumber.org
Wed Apr 19 16:42:33 CEST 2023
On Wed, 19 Apr 2023 11:36:34 +0300
Ophir Munk <ophirmu at nvidia.com> wrote:
> +int ecore_mz_mapping_alloc(void)
> +{
> + ecore_mz_mapping = rte_malloc("ecore_mz_map", 0,
> + rte_memzone_max_get() * sizeof(struct rte_memzone *));
Why not use rte_calloc(), and devices should be using NUMA aware
allocation to put the memzone on same NUMA node as the PCI device.
More information about the dev
mailing list