Skip to content
Commit 0f74dde5 authored by Rakesh Babu Saladi's avatar Rakesh Babu Saladi Committed by Greg Kroah-Hartman
Browse files

octeontx2-af: Support variable number of lmacs

[ Upstream commit f2e664ad

 ]

Most of the code in CGX/RPM driver assumes that max lmacs per
given MAC as always, 4 and the number of MAC blocks also as 4.
With this assumption, the max number of interfaces supported is
hardcoded to 16. This creates a problem as next gen CN10KB silicon
MAC supports 8 lmacs per MAC block.

This patch solves the problem by using "max lmac per MAC block"
value from constant csrs and uses cgx_cnt_max value which is
populated based number of MAC blocks supported by silicon.

Signed-off-by: default avatarRakesh Babu Saladi <rsaladi2@marvell.com>
Signed-off-by: default avatarHariprasad Kelam <hkelam@marvell.com>
Signed-off-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Stable-dep-of: e307b5a8

 ("octeontx2-af: Fix pause frame configuration")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7d391261
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment