octeontx2-af: Fix CGX Receive counters
authorHariprasad Kelam <hkelam@marvell.com>
Tue, 13 May 2025 07:15:54 +0000 (12:45 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 May 2025 02:29:44 +0000 (19:29 -0700)
commitbf449f35e77fd44017abf991fac1f9ab7705bbe0
treed4979a2a2c6c444afceea1119bc7fafffcedd697
parent1bdea6fad6fb985ff13828373c48e337c4e939f9
octeontx2-af: Fix CGX Receive counters

Each CGX block supports 4 logical MACs (LMACS). Receive
counters CGX_CMR_RX_STAT0-8 are per LMAC and CGX_CMR_RX_STAT9-12
are per CGX.

Due a bug in previous patch, stale Per CGX counters values observed.

Fixes: 66208910e57a ("octeontx2-af: Support to retrieve CGX LMAC stats")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Link: https://patch.msgid.link/20250513071554.728922-1-hkelam@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c