]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-af: RPM: fix stale FCFEC counters
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 22 Nov 2024 16:20:34 +0000 (21:50 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 Nov 2024 11:09:40 +0000 (12:09 +0100)
commit6fc2164108462b913a1290fa2c44054c70b060ef
tree4f8a099c1cba2ea7dc217f1bda5f006684f84376
parent07cd1eb166a3fa7244afa74d48bd13c9df7c559d
octeontx2-af: RPM: fix stale FCFEC counters

The corrected words register(FCFECX_VL0_CCW_LO)/Uncorrected words
register (FCFECX_VL0_NCCW_LO) of FCFEC counter has different LMAC
offset which needs to be accessed differently.

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>
drivers/net/ethernet/marvell/octeontx2/af/rpm.c
drivers/net/ethernet/marvell/octeontx2/af/rpm.h