[PATCH] random: clarify PRNG MT safety guarantees

David Marchand david.marchand at redhat.com
Fri Oct 6 11:13:09 CEST 2023


On Wed, Oct 4, 2023 at 1:00 PM Mattias Rönnblom
<mattias.ronnblom at ericsson.com> wrote:
>
> Clarify MT safety guarantees for unregistered non-EAL threads calling
> PRNG functions in rte_random.h.
>
> Clarify that rte_srand() is not MT safe in regards to calls to
> rte_rand_max() and rte_drand().
>
> Suggested-by: Stephen Hemminger <stephen at networkplumber.org>
> Signed-off-by: Mattias Rönnblom <mattias.ronnblom at ericsson.com>

Should it be backported along 3a4e21301c7a ("random: initialize state
for unregistered non-EAL threads") ?


-- 
David Marchand



More information about the dev mailing list