]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: felix: fix ethtool 256-511 and 512-1023 TX packet counters
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 16 Aug 2022 13:53:45 +0000 (16:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:38:07 +0000 (11:38 +0200)
commitaf1748ee51b31e0d0d9e566fd2fec588eda78a0d
tree9989328a6f11c1eb1a38bdc28e971b7fd30bfd24
parent9900af65f2d1f571c022061f42a8c3ded8eb16a0
net: dsa: felix: fix ethtool 256-511 and 512-1023 TX packet counters

commit 40d21c4565bce064c73a03b79a157a3493c518b9 upstream.

What the driver actually reports as 256-511 is in fact 512-1023, and the
TX packets in the 256-511 bucket are not reported. Fix that.

Fixes: 56051948773e ("net: dsa: ocelot: add driver for Felix switch family")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/ocelot/felix_vsc9959.c