]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
classifier: report statistics for basic classifier
authorstephen hemminger <shemminger@vyatta.com>
Thu, 4 Nov 2010 11:47:04 +0000 (11:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Nov 2010 20:17:05 +0000 (12:17 -0800)
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 <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_basic.c

index efd4f95fd0507d1d114db3683805cf08a61762f7..f23d9155b1efc94cdf7a2d2a65b7abcfc6ec0a77 100644 (file)
@@ -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: