]> www.infradead.org Git - users/dwmw2/linux.git/commit
octeontx2-af: Fix start and end bit for scan config
authorRatheesh Kannoth <rkannoth@marvell.com>
Wed, 3 May 2023 07:09:35 +0000 (12:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:35 +0000 (11:53 +0200)
commit1c98271e0c231639adee32d24b23aece2fcea597
tree991087abf1a2864a4cbf080b363b614eb3f588a1
parente92399f527445ba244f76fbb94ff19658a2d3297
octeontx2-af: Fix start and end bit for scan config

[ Upstream commit c60a6b90e7890453f09e0d2163d6acadabe3415b ]

In the current driver, NPC exact match feature was not getting
enabled as configured bit was not read properly.
for_each_set_bit_from() need end bit as one bit post
position in the bit map to read NPC exact nibble enable
bits properly. This patch fixes the same.

Fixes: b747923afff8 ("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>
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_fs.c