summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2004-10-21 08:25:28 -0700
committerDavid S. Miller <davem@nuts.davemloft.net>2004-10-21 08:25:28 -0700
commitec22022467cb820d98842a2c9ac86bfa0676dbcb (patch)
treed0119978a3ba138460f1389a923d303c8f62a3ea /include/net
parentae193ab741e27cfeb24fb52e566dd129e0795df5 (diff)
[PKT_SCHED]: Add dump_stats class op
Adds a new class operation dump_stats which classes can use to dump statistics. Unlike in qdiscs, there are no common statistics therefore classes must dump all statistics on their own. The qdisc stats_lock is being used for locking. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/pkt_sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h
index 6bd1748ba3de..357be232a46c 100644
--- a/include/net/pkt_sched.h
+++ b/include/net/pkt_sched.h
@@ -42,6 +42,7 @@ struct Qdisc_class_ops
/* rtnetlink specific */
int (*dump)(struct Qdisc *, unsigned long, struct sk_buff *skb, struct tcmsg*);
+ int (*dump_stats)(struct Qdisc *, unsigned long, struct gnet_dump *);
};
struct module;