]> git.baikalelectronics.ru Git - kernel.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)
commitd825f7080eb45477e7a4a781c56561e88599acca
treebe66f6fc7f095bdd5e2329710d6eacc6a64186d6
parent2a698f4bc42d0d3f92e2b3fc9b9dfa7c2d1281fa
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: 34efb4cbfb94 ("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