]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: update bstats in dequeue()
authorEric Dumazet <edumazet@google.com>
Thu, 10 May 2012 05:36:34 +0000 (05:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2012 03:33:01 +0000 (23:33 -0400)
commit807663aa69dbb9d2b2f08824663180bdb16cb4b2
treec75209ccd8374f9695d4ec854d5b4bfb80c5e0dc
parentf71e438cd1dfe48ce558132d45ed02e7a6035bd5
net_sched: update bstats in dequeue()

Class bytes/packets stats can be misleading because they are updated in
enqueue() while packet might be dropped later.

We already fixed all qdiscs but sch_atm.

This patch makes the final cleanup.

class rate estimators can now match qdisc ones.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_atm.c
net/sched/sch_drr.c
net/sched/sch_hfsc.c
net/sched/sch_htb.c