net/octeontx2: clear SA valid during session destroy
authorAnoob Joseph <anoobj@marvell.com>
Tue, 13 Jul 2021 10:27:08 +0000 (15:57 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 20 Jul 2021 08:32:05 +0000 (10:32 +0200)
commitee9b17ea58bdf31b360376f1cc4c990b2f8b58b7
tree0368465b7f2e457aa606e64389dd7e64bb854d95
parent87e1160c2c40cc4f7c1c7de61bd14f237cd8df29
net/octeontx2: clear SA valid during session destroy

SA table entry would be reserved for inline inbound operations. Clear
valid bit of the SA so that CPT would treat SA entry as invalid. Also,
move setting of valid bit to the end in case of session_create() to
eliminate possibility of hardware seeing partial data.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/crypto/octeontx2/otx2_ipsec_fp.h
drivers/net/octeontx2/otx2_ethdev_sec.c