Skip to content

Commit 0dfb33a

Browse files
Eric Dumazetdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7f891cf commit 0dfb33a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sched/sch_red.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ static int red_dump(struct Qdisc *sch, struct sk_buff *skb)
239239
.Scell_log = q->parms.Scell_log,
240240
};
241241

242+
sch->qstats.backlog = q->qdisc->qstats.backlog;
242243
opts = nla_nest_start(skb, TCA_OPTIONS);
243244
if (opts == NULL)
244245
goto nla_put_failure;

0 commit comments

Comments
 (0)