[PATCH v5 0/3] introduce random floating point function
Stephen Hemminger
stephen at networkplumber.org
Thu May 26 22:26:50 CEST 2022
Introduce a new random number function to get a floating
point value. Then use it to fix PIE scheduler.
v5
- use divide method (similar to FreeBSD)
it takes same number of cycles (after optimization)
and works on all platforms.
Stephen Hemminger (3):
random: add rte_drand() function
rte_pie: remove unnecessary floating point
rte_pie: fix incorrect floating point math
Stephen Hemminger (3):
random: add rte_drand() function
rte_pie: remove unnecessary floating point
rte_pie: fix incorrect floating point math
app/test/test_rand_perf.c | 7 +++++++
doc/guides/rel_notes/release_22_07.rst | 5 +++++
lib/eal/common/rte_random.c | 19 +++++++++++++++++++
lib/eal/include/rte_random.h | 18 ++++++++++++++++++
lib/eal/version.map | 1 +
lib/sched/rte_pie.h | 7 ++-----
6 files changed, 52 insertions(+), 5 deletions(-)
Series-Acked-by: Morten Brørup <mb at smartsharesystems.com>
--
2.35.1
More information about the dev
mailing list