]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mscc: ocelot: fix eMAC TX RMON stats for bucket 256-511 and above
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 14 Dec 2023 00:09:01 +0000 (02:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jan 2024 12:38:56 +0000 (12:38 +0000)
commitb0cee294022fe261b043b03f625c8156fc1a6d6e
treedb72944029f7523a0981de6d2432fa62a2e1e8bc
parent72b8de75b394af684f3ca762874d8e147d2ca64c
net: mscc: ocelot: fix eMAC TX RMON stats for bucket 256-511 and above

[ Upstream commit 52eda4641d041667fa059f4855c5f88dcebd8afe ]

There is a typo in the driver due to which we report incorrect TX RMON
counters for the 256-511 octet bucket and all the other buckets larger
than that.

Bug found with the selftest at
https://patchwork.kernel.org/project/netdevbpf/patch/20231211223346.2497157-9-tobias@waldekranz.com/

Fixes: e32036e1ae7b ("net: mscc: ocelot: add support for all sorts of standardized counters present in DSA")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20231214000902.545625-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mscc/ocelot_stats.c