Re: [PATCH v1 1/1] eal/random: fix random state initialization for non-eal threads

2023-10-04 Thread Burakov, Anatoly
On 10/2/2023 9:25 AM, David Marchand wrote: Hello guys, On Mon, Aug 28, 2023 at 2:07 PM Anatoly Burakov wrote: Currently, the rte_rand() state is initialized with seed, and each rand state is initialized up until RTE_MAX_LCORE'th rand state. However, rand state also has one extra rand state r

Re: [PATCH v1 1/1] eal/random: fix random state initialization for non-eal threads

2023-10-02 Thread Mattias Rönnblom
On 2023-10-02 10:25, David Marchand wrote: Hello guys, On Mon, Aug 28, 2023 at 2:07 PM Anatoly Burakov wrote: Currently, the rte_rand() state is initialized with seed, and each rand state is initialized up until RTE_MAX_LCORE'th rand state. However, rand state also has one extra rand state re

RE: [PATCH v1 1/1] eal/random: fix random state initialization for non-eal threads

2023-10-02 Thread Morten Brørup
> From: David Marchand [mailto:david.march...@redhat.com] > Sent: Monday, 2 October 2023 10.26 > > Hello guys, > > On Mon, Aug 28, 2023 at 2:07 PM Anatoly Burakov > wrote: > > > > Currently, the rte_rand() state is initialized with seed, and each > > rand state is initialized up until RTE_MAX_LC

Re: [PATCH v1 1/1] eal/random: fix random state initialization for non-eal threads

2023-10-02 Thread David Marchand
Hello guys, On Mon, Aug 28, 2023 at 2:07 PM Anatoly Burakov wrote: > > Currently, the rte_rand() state is initialized with seed, and each > rand state is initialized up until RTE_MAX_LCORE'th rand state. However, > rand state also has one extra rand state reserved for non-EAL threads, > which is

RE: [PATCH v1 1/1] eal/random: fix random state initialization for non-eal threads

2023-08-28 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Monday, 28 August 2023 14.23 > > On 2023-08-28 14:06, Anatoly Burakov wrote: > > Currently, the rte_rand() state is initialized with seed, and each > > rand state is initialized up until RTE_MAX_LCORE'th rand state. > However, > > ran

Re: [PATCH v1 1/1] eal/random: fix random state initialization for non-eal threads

2023-08-28 Thread Mattias Rönnblom
On 2023-08-28 14:06, Anatoly Burakov wrote: Currently, the rte_rand() state is initialized with seed, and each rand state is initialized up until RTE_MAX_LCORE'th rand state. However, rand state also has one extra rand state reserved for non-EAL threads, which is not initialized. Fix it by initia

[PATCH v1 1/1] eal/random: fix random state initialization for non-eal threads

2023-08-28 Thread Anatoly Burakov
Currently, the rte_rand() state is initialized with seed, and each rand state is initialized up until RTE_MAX_LCORE'th rand state. However, rand state also has one extra rand state reserved for non-EAL threads, which is not initialized. Fix it by initializing this extra state. Fixes: 3f002f069612