diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-05-26 07:53:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-29 16:49:16 +0300 |
commit | 47c669a406d8621c69b1c199ce099b54b17b9902 (patch) | |
tree | 330d91ad1561849cbb86a10b8261d00fa22e8ffd /include | |
parent | 674cb229b61039c4763838496e9241f4e6f145a8 (diff) | |
download | linux-47c669a406d8621c69b1c199ce099b54b17b9902.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/pkt_cls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index 942f839dbca4..a3c1a2c47cd4 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -781,11 +781,13 @@ struct tc_qopt_offload_stats { enum tc_mq_command { TC_MQ_CREATE, TC_MQ_DESTROY, + TC_MQ_STATS, }; struct tc_mq_qopt_offload { enum tc_mq_command command; u32 handle; + struct tc_qopt_offload_stats stats; }; enum tc_red_command { |