[PATCH v2 2/2] random: make rte_rand() thread safe for non-EAL threads

Stephen Hemminger stephen at networkplumber.org
Mon Oct 2 18:10:57 CEST 2023


On Thu,  7 Sep 2023 08:24:56 -0700
Stephen Hemminger <stephen at networkplumber.org> wrote:

> Add missing locking so that if two non-EAL threads call rte_rand()
> they will not corrupt the per-thread state.
> 
> Fixes: 3f002f069612 ("eal: replace libc-based random generation with LFSR")
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>

Drop this patch in favor of fixing the documentation and leaving
any thread issues up to application to sort out.


More information about the dev mailing list