Octeontx2-af: Fix an issue in firmware shared data reserved space
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 1 Mar 2024 11:03:14 +0000 (16:33 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2024 10:15:26 +0000 (10:15 +0000)
commitb8b85d048936bd304c7815fd2bce348a22c2055b
treeae55fdee6bcd763cb70e0f3abef902b2ab2c9dea
parentc2a22688c931ae965daa15691e902f9cf3069f5f
Octeontx2-af: Fix an issue in firmware shared data reserved space

The last patch which added support to extend the firmware shared
data to add channel data information has introduced a bug due to
the reserved space not adjusted accordingly.

This patch fixes the issue and also adds BUILD_BUG to avoid this
regression error.

Fixes: 997814491cee ("Octeontx2-af: Fetch MAC channel info from firmware")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
drivers/net/ethernet/marvell/octeontx2/af/rvu.h