Re: [PATCH net-next 02/13] octeontx2-af: Verify MCAM entry channel and PF_FUNC

From: Jakub Kicinski
Date: Mon Nov 02 2020 - 12:52:46 EST


On Mon, 2 Nov 2020 11:41:11 +0530 Naveen Mamindlapalli wrote:
> From: Subbaraya Sundeep <sbhatta@xxxxxxxxxxx>
>
> 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@xxxxxxxxxxx>
> Signed-off-by: Kiran Kumar K <kirankumark@xxxxxxxxxxx>
> Signed-off-by: Sunil Goutham <sgoutham@xxxxxxxxxxx>
> Signed-off-by: Naveen Mamindlapalli <naveenm@xxxxxxxxxxx>

drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c:81:17: warning: incorrect type in assignment (different base types)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c:81:17: expected unsigned short [assigned] [usertype] pf_func
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c:81:17: got restricted __be16 [usertype]