[RFC] lib: set/get max memzone segments
Ophir Munk
ophirmu at nvidia.com
Mon Apr 24 23:43:35 CEST 2023
Thank you Stephen Memminger for you comment.
> Subject: Re: [RFC] lib: set/get max memzone segments
>
> 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(),
rte_malloc() replaced with rte_zmalloc().
> and devices should be using NUMA aware
> allocation to put the memzone on same NUMA node as the PCI device.
I leave this optimization to driver developers. I don't think it should be part of this RFC.
More information about the dev
mailing list