Skip to content

Commit

Permalink
classifier: report statistics for basic classifier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Nov 8, 2010
1 parent 3ce1227 commit 4c46ee5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/sched/cls_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4c46ee5

Please sign in to comment.