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)
commit041a1c171581f5b7016fd9200493ee4455f0afc1
tree1720b2c3f5963fb4a43097304a5a6bad82663b0e
parentf1517f6f1d6fd97a18836b0fb6921f2cb105eeb4
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