]> 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)
commit3368620ed4f1f3844a56acd2e1dfe0cb82f3c858
tree3801db30925392c9ac5aca09d080595e31625eb9
parent6b5f2eb6db0ef4d94b61b8144cfbaf2b0ca6ea35
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