Commit 3cb003b9 authored by Geetha sowjanya's avatar Geetha sowjanya Committed by Greg Kroah-Hartman
Browse files

octeontx2-af: Fix APR entry mapping based on APR_LMT_CFG



[ Upstream commit a6ae7129 ]

The current implementation maps the APR table using a fixed size,
which can lead to incorrect mapping when the number of PFs and VFs
varies.
This patch corrects the mapping by calculating the APR table
size dynamically based on the values configured in the
APR_LMT_CFG register, ensuring accurate representation
of APR entries in debugfs.

Fixes: 0daa55d0 ("octeontx2-af: cn10k: debugfs for dumping LMTST map table").
Signed-off-by: default avatarGeetha sowjanya <gakula@marvell.com>
Link: https://patch.msgid.link/20250521060834.19780-3-gakula@marvell.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7b1357a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment