OSDN Git Service

net: sched: pie: change tc_pie_xstats->prob
authorLeslie Monis <lesliemonis@gmail.com>
Mon, 9 Mar 2020 19:10:33 +0000 (00:40 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 01:05:55 +0000 (18:05 -0700)
commit3f95f55eb55daa17c047d731d1fb7854e5823478
tree650f303eab2d10a41f2dba22a8a49a4eb8b5e503
parente08ab0b377a1489760533424437c5f4be7f484a4
net: sched: pie: change tc_pie_xstats->prob

Commit 105e808c1da2 ("pie: remove pie_vars->accu_prob_overflows")
changes the scale of probability values in PIE from (2^64 - 1) to
(2^56 - 1). This affects the precision of tc_pie_xstats->prob in
user space.

This patch ensures user space is unaffected.

Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Leslie Monis <lesliemonis@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_pie.c