]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c21addecfae220c88aa5ccddcef94881e2392ce
tree3801db30925392c9ac5aca09d080595e31625eb9
parent7b4eb50ee099bc16b6b5d10e49447fd6cb45460f
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