diff options
author | Leslie Monis <lesliemonis@gmail.com> | 2020-03-09 22:10:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-10 04:05:55 +0300 |
commit | 3f95f55eb55daa17c047d731d1fb7854e5823478 (patch) | |
tree | 650f303eab2d10a41f2dba22a8a49a4eb8b5e503 /net/sched/sch_pie.c | |
parent | e08ab0b377a1489760533424437c5f4be7f484a4 (diff) | |
download | linux-3f95f55eb55daa17c047d731d1fb7854e5823478.tar.xz |
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>
Diffstat (limited to 'net/sched/sch_pie.c')
-rw-r--r-- | net/sched/sch_pie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_pie.c b/net/sched/sch_pie.c index f52442d39bf5..c65077f0c0f3 100644 --- a/net/sched/sch_pie.c +++ b/net/sched/sch_pie.c @@ -493,7 +493,7 @@ static int pie_dump_stats(struct Qdisc *sch, struct gnet_dump *d) { struct pie_sched_data *q = qdisc_priv(sch); struct tc_pie_xstats st = { - .prob = q->vars.prob, + .prob = q->vars.prob << BITS_PER_BYTE, .delay = ((u32)PSCHED_TICKS2NS(q->vars.qdelay)) / NSEC_PER_USEC, .packets_in = q->stats.packets_in, |