]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Aug 2022 04:58:30 +0000 (21:58 -0700)
commit40d21c4565bce064c73a03b79a157a3493c518b9
treebe66f6fc7f095bdd5e2329710d6eacc6a64186d6
parent211987f3ac734000ea1548784b2a4539a974fbc8
net: dsa: felix: fix ethtool 256-511 and 512-1023 TX packet counters

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>
drivers/net/dsa/ocelot/felix_vsc9959.c