[PATCH] sched: fix data race in RED random number generation

Thomas Monjalon thomas at monjalon.net
Thu Oct 15 20:56:53 CEST 2026


10/10/2026 03:59, Stephen Hemminger:
> The RED scheduler used its own random number generator which was
> weak and buggy. Change standard rte_rand() which has better
> randomness and is thread safe.
> 
> There is no prior deprecation notice for relatedd symbols. They were
> never meant to be part of the API: rte_fast_rand() is the internal
> generator of the dropper and the two variables are its state, all
> exposed only because the drop test is inline in rte_red.h.
> 
> Fixes: de3cfa2c9823 ("sched: initial import")
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>

Applied, thanks.





More information about the dev mailing list