]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Fix depth of cam and mem table.
authorRatheesh Kannoth <rkannoth@marvell.com>
Wed, 3 May 2023 07:09:36 +0000 (12:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:35 +0000 (11:53 +0200)
commit4589ca2693d739b2d3e6203ebe806d2e07495cc6
treea79f22b89af1445429e63b8c5fd0747b6a59fab7
parentec44f289e8556b8602fa7bdea9b86488df5d31d1
octeontx2-af: Fix depth of cam and mem table.

[ Upstream commit 60999cb83554ebcf6cfff8894bc2c3d99ea858ba ]

In current driver, NPC cam and mem table sizes are read from wrong
register offset. This patch fixes the register offset so that correct
values are populated on read.

Fixes: fccf7f93c332 ("octeontx2-af: Exact match support")
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Sai Krishna <saikrishnag@marvell.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c