Skip to content
Commit 6c97da14 authored by Leslie Monis's avatar Leslie Monis Committed by David S. Miller
Browse files

net: sched: pie: avoid slow division in drop probability decay



As per RFC 8033, it is sufficient for the drop probability
decay factor to have a value of (1 - 1/64) instead of 98%.
This avoids the need to do slow division.

Suggested-by: default avatarDavid Laight <David.Laight@aculab.com>
Signed-off-by: default avatarLeslie Monis <lesliemonis@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4a8acef7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment