]> www.infradead.org Git - users/willy/pagecache.git/commit
octeontx2-af: RPM: fix stale RSFEC counters
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 22 Nov 2024 16:20:33 +0000 (21:50 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 Nov 2024 11:09:40 +0000 (12:09 +0100)
commit07cd1eb166a3fa7244afa74d48bd13c9df7c559d
treeb881aa3d05546f2e7ec59c89fc9908c21ed20f0a
parentd1e8884e050c1255a9ceb477f5ff926ee9214a23
octeontx2-af: RPM: fix stale RSFEC counters

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