]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: mq: request stats from offloads
authorJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 26 May 2018 04:53:37 +0000 (21:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 13:49:16 +0000 (09:49 -0400)
commit98314781d8a26185ad1dce2d8660c2d26a4e9010
tree330d91ad1561849cbb86a10b8261d00fa22e8ffd
parent0e4e992a1dcab7f735fe4f9fd4d379e5fbf13471
net: sched: mq: request stats from offloads

MQ doesn't hold any statistics on its own, however, statistic
from offloads are requested starting from the root, hence MQ
will read the old values for its sums.  Call into the drivers,
because of the additive nature of the stats drivers are aware
of how much "pending updates" they have to children of the MQ.
Since MQ reset its stats on every dump we can simply offset
the stats, predicting how stats of offloaded children will
change.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h
net/sched/sch_mq.c