summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-05-25 21:53:37 -0700
committerDavid S. Miller <davem@davemloft.net>2018-05-29 09:49:16 -0400
commit47c669a406d8621c69b1c199ce099b54b17b9902 (patch)
tree330d91ad1561849cbb86a10b8261d00fa22e8ffd /include/net
parent674cb229b61039c4763838496e9241f4e6f145a8 (diff)
downloadop-kernel-dev-47c669a406d8621c69b1c199ce099b54b17b9902.zip
op-kernel-dev-47c669a406d8621c69b1c199ce099b54b17b9902.tar.gz
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/net')
-rw-r--r--include/net/pkt_cls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index 942f839..a3c1a2c 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 {
OpenPOWER on IntegriCloud