octeontx2-af: add mailbox interface for CPT
authorSrujana Challa <schalla@marvell.com>
Wed, 18 Nov 2020 11:44:15 +0000 (17:14 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Nov 2020 19:01:13 +0000 (11:01 -0800)
commitae454086e3c227f78acb718249064aecb94da1e8
tree3801db30925392c9ac5aca09d080595e31625eb9
parent956fb852181e4e4b16ccad62511e0038d3ed4928
octeontx2-af: add mailbox interface for CPT

On OcteonTX2 SoC, the admin function (AF) is the only one with all
priviliges to configure HW and alloc resources, PFs and it's VFs
have to request AF via mailbox for all their needs. This patch adds
a mailbox interface for CPT PFs and VFs to allocate resources
for cryptography. It also adds hardware CPT AF register defines.

Signed-off-by: Suheil Chandran <schandran@marvell.com>
Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
Signed-off-by: Srujana Challa <schalla@marvell.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/Makefile
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c [new file with mode: 0644]
drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.h