From: David Ward Date: Thu, 13 Sep 2012 05:22:34 +0000 (+0000) Subject: net_sched: gred: fix qave reporting via netlink X-Git-Tag: v3.6-rc6~18^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fe37b106b039d9358fd1211c39b1fa199e547a8;p=pandora-kernel.git net_sched: gred: fix qave reporting via netlink q->vars.qavg is a Wlog scaled value, but q->backlog is not. In order to pass q->vars.qavg as the backlog value, we need to un-scale it. Additionally, the qave value returned via netlink should not be Wlog scaled, so we need to un-scale the result of red_calc_qavg(). This caused artificially high values for "Average Queue" to be shown by 'tc -s -d qdisc', but did not affect the actual operation of GRED. Signed-off-by: David Ward Acked-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- Reading git-diff-tree failed