]> git.hungrycats.org Git - linux/commit
octeontx2-af: RPM: fix stale RSFEC counters
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 22 Nov 2024 16:20:33 +0000 (21:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 13:02:33 +0000 (14:02 +0100)
commit5132e401521b93ccb09d2c8b65bf4522cb8eb69f
tree5cbb6c068ab8ae425706f32f7483b256ebd2a462
parent0309a0aabed70931f15991238002da90849ca96f
octeontx2-af: RPM: fix stale RSFEC counters

[ Upstream commit 07cd1eb166a3fa7244afa74d48bd13c9df7c559d ]

The earlier patch sets the 'Stats control register' for RPM
receive/transmit statistics instead of RSFEC statistics,
causing the driver to return stale FEC counters.

Fixes: 84ad3642115d ("octeontx2-af: Add FEC stats for RPM/RPM_USX block")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rpm.c
drivers/net/ethernet/marvell/octeontx2/af/rpm.h