Re: [PATCH] sched: QFQ - quick fair queue scheduler (v2)

Eric Dumazet
2011-03-03T15:39:40Z

Le jeudi 03 mars 2011 à 16:31 +0100, Eric Dumazet a écrit :
> Le jeudi 03 mars 2011 à 16:25 +0100, Eric Dumazet a écrit :
>
> > qfq_dump_class_stats() probably miss one line :
> >
> > scl->bstats.qlen = cl->qdisc->q.qlen;
> >
> >
>
> Hmm,
>
> cl->qdisc->qstats.qlen = cl->qdisc->q.qlen;
>
> It should be better ;)
>
>

Indeed, 'packet count' is now correct in qfq classes

# tc -s -d qdisc show dev dummy0
qdisc cbq 1: root refcnt 2 rate 1000Mbit cell 8b (bounded,isolated) prio no-transmit/8 weight 1000Mbit allot 1514b
level 2 ewma 5 avpkt 1000b maxidle 0us
Sent 800 bytes 4 pkt (dropped 0, overlimits 83 requeues 0)
backlog 0b 86p requeues 0
borrowed 0 overactions 0 avgidle 125 undertime 0
qdisc qfq 11: parent 1:11
Sent 800 bytes 4 pkt (dropped 0, overlimits 0 requeues 0)
rate 360bit 0pps backlog 0b 86p requeues 0
qdisc pfifo 8001: parent 11:1 limit 30p
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 2400b 12p requeues 0
qdisc pfifo 8002: parent 11:2 limit 30p
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 2000b 10p requeues 0
qdisc pfifo 8003: parent 11:3 limit 30p
Sent 200 bytes 1 pkt (dropped 0, overlimits 0 requeues 0)
backlog 3400b 17p requeues 0
qdisc pfifo 8004: parent 11:4 limit 30p
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 1200b 6p requeues 0
qdisc pfifo 8005: parent 11:5 limit 30p
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 2400b 12p requeues 0
qdisc pfifo 8006: parent 11:6 limit 30p
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 1400b 7p requeues 0
qdisc pfifo 8007: parent 11:7 limit 30p
Sent 400 bytes 2 pkt (dropped 0, overlimits 0 requeues 0)
backlog 1400b 7p requeues 0
qdisc pfifo 8008: parent 11:8 limit 30p
Sent 200 bytes 1 pkt (dropped 0, overlimits 0 requeues 0)
backlog 3000b 15p requeues 0