]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-af: Fix CGX Receive counters
authorHariprasad Kelam <hkelam@marvell.com>
Tue, 13 May 2025 07:15:54 +0000 (12:45 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:12:18 +0000 (14:12 +0200)
commit72ee7af615709cec5fceb92001ce269cc64f9905
tree0b3efd11987d10eb2cf736defc16c3fbfc0234c2
parent398989c7800eacfe2e5c2a0afbaf5b497e7157d9
octeontx2-af: Fix CGX Receive counters

[ Upstream commit bf449f35e77fd44017abf991fac1f9ab7705bbe0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c