]> 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)
commitaf7dfe434fe4c12e4ca207ab157edf0221efab9e
tree1818ba3b76abba4e96bf91c5865d8fb3379a6721
parenta5214c478294cda22bba5c740a6e4b13bdb23c0d
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