[PATCH v1 1/1] eal/random: fix random state initialization for non-eal threads
Morten Brørup
mb at smartsharesystems.com
Mon Aug 28 14:48:41 CEST 2023
> From: Mattias Rönnblom [mailto:hofors at 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,
> > 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 ("eal: replace libc-based random generation with
> LFSR")
> > Cc: mattias.ronnblom at ericsson.com
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> > ---
Acked-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list