octeontx2-af: Add validation of lmac
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 25 Aug 2023 10:40:21 +0000 (16:10 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2023 09:05:56 +0000 (10:05 +0100)
commit2f387525d484c0eca841b71842e1cd672220c20c
tree4e740e4a8cb8944ecebc900bfb3654a04163471d
parentf027fd51edebb326c1edb5d283ceaa7b8f7508df
octeontx2-af: Add validation of lmac

With the addition of new MAC blocks like CN10K RPM and CN10KB
RPM_USX, LMACs are noncontiguous. Though in most of the functions,
lmac validation checks exist but in few functions they are missing.
This patch adds the same.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c