]> git.itanic.dy.fi Git - linux-stable/commit
net: mscc: ocelot: fix pMAC TX RMON stats for bucket 256-511 and above
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 14 Dec 2023 00:09:02 +0000 (02:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Dec 2023 01:58:10 +0000 (17:58 -0800)
commit70f010da00f90415296f93fb47a561977eae41cb
tree956411ed4f89c642e6648b224e1de0bcb8d5b23f
parent52eda4641d041667fa059f4855c5f88dcebd8afe
net: mscc: ocelot: fix pMAC TX RMON stats for bucket 256-511 and above

The typo from ocelot_port_rmon_stats_cb() was also carried over to
ocelot_port_pmac_rmon_stats_cb() as well, leading to incorrect TX RMON
stats for the pMAC too.

Fixes: ab3f97a9610a ("net: mscc: ocelot: export ethtool MAC Merge stats for Felix VSC9959")
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-2-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot_stats.c