summaryrefslogtreecommitdiff
path: root/include/net/pkt_sched.h
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2023-06-09 16:59:16 +0300
committerDavid S. Miller <davem@davemloft.net>2023-06-12 09:43:30 +0100
commit2b84960fc5dd38a19241388fb33f20936cb217e2 (patch)
tree4ba8bdaaffeaac3c1da110fede5214671d5b6aa7 /include/net/pkt_sched.h
parentf2ea0c3582abc721ce9e090cf496b96e6b204e2c (diff)
net/sched: taprio: report class offload stats per TXQ, not per TC
The taprio Qdisc creates child classes per netdev TX queue, but taprio_dump_class_stats() currently reports offload statistics per traffic class. Traffic classes are groups of TXQs sharing the same dequeue priority, so this is incorrect and we shouldn't be bundling up the TXQ stats when reporting them, as we currently do in enetc. Modify the API from taprio to drivers such that they report TXQ offload stats and not TC offload stats. There is no change in the UAPI or in the global Qdisc stats. Fixes: 6c1adb650c8d ("net/sched: taprio: add netlink reporting for offload statistics counters") Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_sched.h')
-rw-r--r--include/net/pkt_sched.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h
index 518febb91c9f..e98aac9d5ad5 100644
--- a/include/net/pkt_sched.h
+++ b/include/net/pkt_sched.h
@@ -191,7 +191,7 @@ enum tc_taprio_qopt_cmd {
TAPRIO_CMD_REPLACE,
TAPRIO_CMD_DESTROY,
TAPRIO_CMD_STATS,
- TAPRIO_CMD_TC_STATS,
+ TAPRIO_CMD_QUEUE_STATS,
};
/**
@@ -208,8 +208,8 @@ struct tc_taprio_qopt_stats {
u64 tx_overruns;
};
-struct tc_taprio_qopt_tc_stats {
- int tc;
+struct tc_taprio_qopt_queue_stats {
+ int queue;
struct tc_taprio_qopt_stats stats;
};
@@ -227,8 +227,8 @@ struct tc_taprio_qopt_offload {
union {
/* TAPRIO_CMD_STATS */
struct tc_taprio_qopt_stats stats;
- /* TAPRIO_CMD_TC_STATS */
- struct tc_taprio_qopt_tc_stats tc_stats;
+ /* TAPRIO_CMD_QUEUE_STATS */
+ struct tc_taprio_qopt_queue_stats queue_stats;
/* TAPRIO_CMD_REPLACE */
struct {
struct tc_mqprio_qopt_offload mqprio;