]> git.itanic.dy.fi Git - linux-stable/commit
net/sched: taprio: report class offload stats per TXQ, not per TC
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 9 Jun 2023 13:59:16 +0000 (16:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jun 2023 08:43:30 +0000 (09:43 +0100)
commit2b84960fc5dd38a19241388fb33f20936cb217e2
tree4ba8bdaaffeaac3c1da110fede5214671d5b6aa7
parentf2ea0c3582abc721ce9e090cf496b96e6b204e2c
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>
drivers/net/ethernet/freescale/enetc/enetc_qos.c
include/net/pkt_sched.h
net/sched/sch_taprio.c