]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Verify MCAM entry channel and PF_FUNC
authorSubbaraya Sundeep <sbhatta@marvell.com>
Sat, 14 Nov 2020 19:52:52 +0000 (01:22 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 21:48:20 +0000 (13:48 -0800)
commit7441db36c26a84f5b0eb36ac754978d4adc5a0e2
tree1720b2c3f5963fb4a43097304a5a6bad82663b0e
parent88c0c098e3196c196f9aecfef3557517fcc188f6
octeontx2-af: Verify MCAM entry channel and PF_FUNC

This patch adds support to verify the channel number sent by
mailbox requester before writing MCAM entry for Ingress packets.
Similarly for Egress packets, verifying the PF_FUNC sent by the
mailbox user.

Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c