diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-01-03 08:11:38 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-03 12:13:15 -0800 |
commit | 0dfb33a0d7e2d9316eb4441a065ddd173f87223e (patch) | |
tree | 7a5d88d43f1fd829070ba97008156bf5eeb37b0b /net/sched | |
parent | 7f891cf1fc0d5d5c5b359caec77e5383e1d55986 (diff) | |
download | kernel_samsung_smdk4412-0dfb33a0d7e2d9316eb4441a065ddd173f87223e.zip kernel_samsung_smdk4412-0dfb33a0d7e2d9316eb4441a065ddd173f87223e.tar.gz kernel_samsung_smdk4412-0dfb33a0d7e2d9316eb4441a065ddd173f87223e.tar.bz2 |
sch_red: report backlog information
Provide child qdisc backlog (byte count) information so that "tc -s
qdisc" can report it to user.
packet count is already correctly provided.
qdisc red 11: parent 1:11 limit 60Kb min 15Kb max 45Kb ecn
Sent 3116427684 bytes 1415782 pkt (dropped 8, overlimits 7866 requeues 0)
rate 242385Kbit 13630pps backlog 13560b 8p requeues 0
marked 7865 early 1 pdrop 7 other 0
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_red.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/sch_red.c b/net/sched/sch_red.c index 8d42bb3..a67ba3c 100644 --- a/net/sched/sch_red.c +++ b/net/sched/sch_red.c @@ -239,6 +239,7 @@ static int red_dump(struct Qdisc *sch, struct sk_buff *skb) .Scell_log = q->parms.Scell_log, }; + sch->qstats.backlog = q->qdisc->qstats.backlog; opts = nla_nest_start(skb, TCA_OPTIONS); if (opts == NULL) goto nla_put_failure; |