]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: MCAM entry installation support
authorSunil Goutham <sgoutham@marvell.com>
Mon, 19 Nov 2018 10:47:28 +0000 (16:17 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Nov 2018 01:56:07 +0000 (17:56 -0800)
commitd929985f1c8699a94979d8120499581491ad4001
tree1818ba3b76abba4e96bf91c5865d8fb3379a6721
parentae7014e231f8e765cd09903aa9da55bd876480ee
octeontx2-af: MCAM entry installation support

Add support for a RVU PF/VF to enable, disable, configure
and shuffle MCAM entries via mbox commands. This patch adds
mailbox message formats and handling of these commands.

As of now otherthan validating MCAM entry index, info like
channel number e.t.c in MCAM config data sent by PF/VF are
not validated.

Also a max of 64 MCAM entries can be shuffled with a single
mbox command.

Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c