]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: fix address of SYS_COUNT_TX_AGING counter
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 16 Aug 2022 13:53:47 +0000 (16:53 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Aug 2022 04:58:31 +0000 (21:58 -0700)
commit0ff46ff111e369f6f16fdc18a2101f3165d8ddc2
tree4c16879fe7182024294f3bfafa0598fd703bbd6b
parent2816508c5523cbf415d58a811a0f80ef7143a57f
net: mscc: ocelot: fix address of SYS_COUNT_TX_AGING counter

This register, used as part of stats->tx_dropped in
ocelot_get_stats64(), has a wrong address. At the address currently
given, there is actually the c_tx_green_prio_6 counter.

Fixes: 1bed22a67906 ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/vsc7514_regs.c