lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 5 Mar 2020 21:55:40 +0530 From: Leslie Monis <lesliemonis@...il.com> To: Linux NetDev <netdev@...r.kernel.org> Cc: David Ahern <dsahern@...il.com>, Stephen Hemminger <stephen@...workplumber.org>, "Mohit P . Tahiliani" <tahiliani@...k.edu.in>, Gautam Ramakrishnan <gautamramk@...il.com> Subject: [PATCH iproute2-next] tc: pie: change maximum integer value of tc_pie_xstats->prob Kernel commit 105e808c1da2 ("pie: remove pie_vars->accu_prob_overflows"), changes the maximum value of tc_pie_xstats->prob from (2^64 - 1) to (2^56 - 1). Signed-off-by: Mohit P. Tahiliani <tahiliani@...k.edu.in> Signed-off-by: Gautam Ramakrishnan <gautamramk@...il.com> Signed-off-by: Leslie Monis <lesliemonis@...il.com> --- tc/q_pie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tc/q_pie.c b/tc/q_pie.c index 709a78b4..e6939652 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 maximum integer value */ + /* prob is returned as a fracion of (2^56 - 1) */ print_float(PRINT_ANY, "prob", " prob %lg", - (double)st->prob / (double)UINT64_MAX); + (double)st->prob / (double)(UINT64_MAX >> 8)); print_uint(PRINT_JSON, "delay", NULL, st->delay); print_string(PRINT_FP, NULL, " delay %s", sprint_time(st->delay, b1)); -- 2.17.1
Powered by blists - more mailing lists