]> git.droids-corp.org - dpdk.git/commit
crypto/cnxk: account for CPT CTX updates and flush delays
authorAnoob Joseph <anoobj@marvell.com>
Fri, 17 Dec 2021 09:19:55 +0000 (14:49 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 21 Jan 2022 08:40:01 +0000 (09:40 +0100)
commit568e6db2203ee4675f795b3f59a0f809e5e81c57
treee264c7582364bc5fac95444e01b9fa59879ecc11
parent09e5c772fadec40c51eb2a286990fd41b0eb4e14
crypto/cnxk: account for CPT CTX updates and flush delays

CPT CTX write with microcode would require CPT flush to complete to have
DRAM updated with the SA. Since datapath requires SA direction field,
introduce a new flag for the same.

Session destroy path is also updated to clear sa.valid bit using CTX
reload operation.

Session is updated with marker to differentiate s/w immutable and s/w
mutable portions.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/crypto/cnxk/cn10k_cryptodev_ops.c
drivers/crypto/cnxk/cn10k_ipsec.c
drivers/crypto/cnxk/cn10k_ipsec.h
drivers/crypto/cnxk/cn10k_ipsec_la_ops.h