Re: [RFC] memarea: introduce memory area library

2022-08-30 Thread Dmitry Kozlyuk
> > Note: > a) the memarea is oriented towards the application layer, which could > provides 'region-based memory management' [1] function. > Judging from the API, this library would rather provide an interface to a generic allocator over a fixed memory extent, because it offers freeing of specifi

Re: [RFC] memarea: introduce memory area library

2022-08-03 Thread Jerin Jacob
On Thu, Jul 21, 2022 at 10:23 AM Chengwen Feng wrote: > > The memarea library is an allocator of variable-size object. It is a > collection of allocated objects that can be efficiently alloc or free > all at once, the main feature are as follows: > a) it facilitate alloc and free of memory with lo

Re: [RFC] memarea: introduce memory area library

2022-07-21 Thread Stephen Hemminger
On Thu, 21 Jul 2022 12:46:48 +0800 Chengwen Feng wrote: > +struct rte_memarea { > + void *private_data; /**< private management data pointer*/ > + struct rte_memarea_param init; > +}; Why does this structure have to be exposed in user API? Hiding it in implementation would reduce ABI bre