]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Allow mkex profile without DMAC and add L2M/L2B header extraction support
authorSuman Ghosh <sumang@marvell.com>
Mon, 31 Oct 2022 09:08:56 +0000 (14:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:36 +0000 (11:53 +0200)
commit2da8ffd90e35cd5fcb8fdcb9faf1d6ff6f21d44c
tree9981b3eebe369772817f1f0873835e5d346eee7d
parente9e1de9a5cc818b9bc6c84b41c472acc290370f1
octeontx2-af: Allow mkex profile without DMAC and add L2M/L2B header extraction support

[ Upstream commit 2cee6401c4eaa562abc1d437d5d03e80bbee79c1 ]

1. It is possible to have custom mkex profiles which do not extract
DMAC at all into the key. Hence allow mkex profiles which do not
have DMAC to be loaded into MCAM hardware. This patch also adds
debugging prints needed to identify profiles with wrong
configuration.

2. If a mkex profile set "l2l3mb" field for Rx interface,
then Rx multicast and broadcast entry should be configured.

Signed-off-by: Suman Ghosh <sumang@marvell.com>
Link: https://lore.kernel.org/r/20221031090856.1404303-1-sumang@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 406bed11fb91 ("octeontx2-af: Update/Fix NPC field hash extract feature")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/npc.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c