numam-dpdk/lib/sched
Stephen Hemminger 45a192b2b4 sched: fix floating point math
The function rte_pie_drop was attempting to do a random probability
drop, but because of incorrect usage of fixed point divide
it would always return 1.

Change to use new rte_drand() instead.

Fixes: 44c730b0e3 ("sched: add PIE based congestion management")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
2022-06-22 11:11:48 +02:00
..
meson.build sched: add PIE based congestion management 2021-11-04 15:41:49 +01:00
rte_approx.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_approx.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_pie.c sched: remove unneeded header includes 2022-06-21 16:46:56 +02:00
rte_pie.h sched: fix floating point math 2022-06-22 11:11:48 +02:00
rte_red.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_red.h lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
rte_sched_common.h sched: get 64-bit greatest common divisor 2021-09-27 17:24:16 +02:00
rte_sched.c sched: enable traffic class oversubscription conditionally 2022-06-01 08:58:27 +02:00
rte_sched.h sched: enable traffic class oversubscription conditionally 2022-06-01 08:58:27 +02:00
version.map sched: enable traffic class oversubscription conditionally 2022-06-01 08:58:27 +02:00