]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: increment drop counters in qdisc_tree_decrease_qlen()
authorEric Dumazet <edumazet@google.com>
Mon, 7 Oct 2013 15:32:32 +0000 (08:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Oct 2013 20:27:33 +0000 (16:27 -0400)
commit55d5bad91a930d28ad4a3c3b3279ab3cb2c0e6e9
tree4b48a1db1f650dde62573063ae2ab83f1855e3d5
parentcc61fa992cc19d3e7090c2e76733cd275b2712f9
net_sched: increment drop counters in qdisc_tree_decrease_qlen()

qdisc_tree_decrease_qlen() is called when some packets are dropped
on a qdisc, and we want to notify parents of qlen changes.

We also can increment parents qdisc qstats drop counters.

This permits more accurate drop counters up to root qdisc.

For example a graft operation typically resets a qdisc
(drops all packets) and call qdisc_tree_decrease_qlen()

Note that callers are responsible for their drop counters.

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