Re: [PATCH v14 1/7] eal: add static per-lcore memory allocation facility

2024-10-16 Thread Mattias Rönnblom
On 2024-10-16 16:53, Stephen Hemminger wrote: On Wed, 16 Oct 2024 15:19:10 +0200 Mattias Rönnblom wrote: + +/** + * Allocate space in the per-lcore id buffers for an lcore variable. + * + * The pointer returned is only an opaque identifier of the variable. To + * get an actual pointer to a par

Re: [PATCH v14 1/7] eal: add static per-lcore memory allocation facility

2024-10-16 Thread Stephen Hemminger
On Wed, 16 Oct 2024 15:19:10 +0200 Mattias Rönnblom wrote: > + > +/** > + * Allocate space in the per-lcore id buffers for an lcore variable. > + * > + * The pointer returned is only an opaque identifier of the variable. To > + * get an actual pointer to a particular instance of the variable use

[PATCH v14 1/7] eal: add static per-lcore memory allocation facility

2024-10-16 Thread Mattias Rönnblom
Introduce DPDK per-lcore id variables, or lcore variables for short. An lcore variable has one value for every current and future lcore id-equipped thread. The primary use case is for statically allocating small, frequently-accessed data structures, for which one instance should exist for each l