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: 44c730b0e379 ("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
..
2022-05-30 23:30:33 +02:00
2021-08-17 08:37:52 +02:00
2022-06-06 23:31:29 +02:00
2022-02-27 18:58:47 +01:00
2022-02-22 13:10:39 +01:00
2022-02-22 13:10:39 +01:00
2022-06-21 16:46:56 +02:00
2022-02-22 14:47:49 +01:00
2022-06-01 11:15:37 +02:00
2022-02-22 14:47:49 +01:00
2022-06-21 16:46:56 +02:00
2022-02-22 13:10:39 +01:00
2022-02-22 13:10:39 +01:00
2022-06-01 15:04:34 +02:00
2022-02-22 13:10:39 +01:00
2022-02-22 13:10:39 +01:00
2022-06-22 11:11:48 +02:00