octeontx2-af: Set LMT_ENA bit for APR table entries
authorSubbaraya Sundeep <sbhatta@marvell.com>
Wed, 21 May 2025 06:08:33 +0000 (11:38 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 22 May 2025 10:17:35 +0000 (12:17 +0200)
commit0eefa27b493306928d88af6368193b134c98fd64
tree19498d45a1f5d5ca704d88bb5112c29ee4dcda93
parentbd2ec34d005013419f76196e76e8b8b55e436e31
octeontx2-af: Set LMT_ENA bit for APR table entries

This patch enables the LMT line for a PF/VF by setting the
LMT_ENA bit in the APR_LMT_MAP_ENTRY_S structure.

Additionally, it simplifies the logic for calculating the
LMTST table index by consistently using the maximum
number of hw supported VFs (i.e., 256).

Fixes: 873a1e3d207a ("octeontx2-af: cn10k: Setting up lmtst map table").
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/20250521060834.19780-2-gakula@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c