From: stephen hemminger Date: Thu, 4 Nov 2010 11:47:04 +0000 (+0000) Subject: classifier: report statistics for basic classifier X-Git-Tag: v2.6.37-rc2~20^2~41 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4c46ee52589a4edd67447214eb489b10fed5c53a;p=karo-tx-linux.git classifier: report statistics for basic classifier The basic classifier keeps statistics but does not report it to user space. This showed up when using basic classifier (with police) as a default catch all on ingress; no statistics were reported. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c index efd4f95fd050..f23d9155b1ef 100644 --- a/net/sched/cls_basic.c +++ b/net/sched/cls_basic.c @@ -268,6 +268,10 @@ static int basic_dump(struct tcf_proto *tp, unsigned long fh, goto nla_put_failure; nla_nest_end(skb, nest); + + if (tcf_exts_dump_stats(skb, &f->exts, &basic_ext_map) < 0) + goto nla_put_failure; + return skb->len; nla_put_failure: