[PATCH v2 0/2] fixes to rte_random for non-EAL threads

Stephen Hemminger stephen at networkplumber.org
Thu Sep 7 17:24:54 CEST 2023


While examining the code for rte_random, noticed a couple of
existing bugs around use of rte_rand() by non-EAL threads

Stephen Hemminger (2):
  random: initialize the random state for non-EAL threads
  random: make rte_rand() thread safe for non-EAL threads

 lib/eal/common/rte_random.c | 56 ++++++++++++++++++++++++-------------
 1 file changed, 37 insertions(+), 19 deletions(-)

-- 
2.39.2



More information about the dev mailing list