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)
commit47c669a406d8621c69b1c199ce099b54b17b9902
tree330d91ad1561849cbb86a10b8261d00fa22e8ffd
parent674cb229b61039c4763838496e9241f4e6f145a8
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