diff options
author | Leslie Monis <lesliemonis@gmail.com> | 2020-03-10 23:45:49 +0530 |
---|---|---|
committer | David Ahern <dsahern@gmail.com> | 2020-03-10 18:29:26 +0000 |
commit | 94c4ce822c2c8e080fdb612e2585bbec0a8a3cd9 (patch) | |
tree | 09811582140982aaa8e71ca224ce6a9944115aa9 | |
parent | 92cfe3260e9110c3d33627847b6eaa153664c79c (diff) | |
download | iproute2-94c4ce822c2c8e080fdb612e2585bbec0a8a3cd9.tar.gz |
Revert "tc: pie: change maximum integer value of tc_pie_xstats->prob"
This reverts commit 92cfe3260e9110c3d33627847b6eaa153664c79c.
Kernel commit 3f95f55eb55d ("net: sched: pie: change tc_pie_xstats->prob")
removes the need to change the maximum integer value of
tc_pie_stats->prob here.
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Leslie Monis <lesliemonis@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
-rw-r--r-- | tc/q_pie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tc/q_pie.c b/tc/q_pie.c index e69396526..709a78b4c 100644 --- a/tc/q_pie.c +++ b/tc/q_pie.c @@ -223,9 +223,9 @@ static int pie_print_xstats(struct qdisc_util *qu, FILE *f, st = RTA_DATA(xstats); - /* prob is returned as a fracion of (2^56 - 1) */ + /* prob is returned as a fracion of maximum integer value */ print_float(PRINT_ANY, "prob", " prob %lg", - (double)st->prob / (double)(UINT64_MAX >> 8)); + (double)st->prob / (double)UINT64_MAX); print_uint(PRINT_JSON, "delay", NULL, st->delay); print_string(PRINT_FP, NULL, " delay %s", sprint_time(st->delay, b1)); |