RE: [RFC v2 3/5] random: keep PRNG state in lcore variable

2024-02-19 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Monday, 19 February 2024 15.04 > > On 2024-02-19 12:22, Morten Brørup wrote: > >> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > >> Sent: Monday, 19 February 2024 10.41 > >> > >> Replace keeping PRNG state in a RTE_MA

Re: [RFC v2 3/5] random: keep PRNG state in lcore variable

2024-02-19 Thread Mattias Rönnblom
On 2024-02-19 12:22, Morten Brørup wrote: From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] Sent: Monday, 19 February 2024 10.41 Replace keeping PRNG state in a RTE_MAX_LCORE-sized static array of cache-aligned and RTE_CACHE_GUARDed struct instances with keeping the same state in a m

RE: [RFC v2 3/5] random: keep PRNG state in lcore variable

2024-02-19 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > Sent: Monday, 19 February 2024 10.41 > > Replace keeping PRNG state in a RTE_MAX_LCORE-sized static array of > cache-aligned and RTE_CACHE_GUARDed struct instances with keeping the > same state in a more cache-friendly lcore variabl

[RFC v2 3/5] random: keep PRNG state in lcore variable

2024-02-19 Thread Mattias Rönnblom
Replace keeping PRNG state in a RTE_MAX_LCORE-sized static array of cache-aligned and RTE_CACHE_GUARDed struct instances with keeping the same state in a more cache-friendly lcore variable. Signed-off-by: Mattias Rönnblom --- lib/eal/common/rte_random.c | 30 ++ 1 fil