octeontx2-af: Fix mcs sa cam entries size
authorGeetha sowjanya <gakula@marvell.com>
Tue, 5 Dec 2023 08:04:31 +0000 (13:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2023 17:39:10 +0000 (18:39 +0100)
[ Upstream commit 9723b2cca1f0e980c53156b52ea73b93966b3c8a ]

On latest silicon versions SA cam entries increased to 256.
This patch fixes the datatype of sa_entries in mcs_hw_info
struct to u16 to hold 256 entries.

Fixes: 080bbd19c9dd ("octeontx2-af: cn10k: mcs: Add mailboxes for port related operations")
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/mbox.h

index a0c31f5..03ebabd 100644 (file)
@@ -1877,7 +1877,7 @@ struct mcs_hw_info {
        u8 tcam_entries;        /* RX/TX Tcam entries per mcs block */
        u8 secy_entries;        /* RX/TX SECY entries per mcs block */
        u8 sc_entries;          /* RX/TX SC CAM entries per mcs block */
-       u8 sa_entries;          /* PN table entries = SA entries */
+       u16 sa_entries;         /* PN table entries = SA entries */
        u64 rsvd[16];
 };