[dpdk-dev] [PATCH 6/6] crypto/cnxk: support IPv6 mixed tunnel mode
Archana Muniganti
marchana at marvell.com
Thu Oct 28 18:52:28 CEST 2021
Adds IPv6 mixed tunnel mode support for cn9k.
Signed-off-by: Archana Muniganti <marchana at marvell.com>
---
drivers/crypto/cnxk/cn9k_ipsec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/crypto/cnxk/cn9k_ipsec.c b/drivers/crypto/cnxk/cn9k_ipsec.c
index ca26d9289c..a81130b244 100644
--- a/drivers/crypto/cnxk/cn9k_ipsec.c
+++ b/drivers/crypto/cnxk/cn9k_ipsec.c
@@ -407,7 +407,8 @@ cn9k_ipsec_outb_sa_create(struct cnxk_cpt_qp *qp,
w4.u64 = 0;
w4.s.opcode_major = ROC_IE_ON_MAJOR_OP_PROCESS_OUTBOUND_IPSEC;
w4.s.opcode_minor = ctx_len >> 3;
- w4.s.param1 = ROC_IE_ON_PER_PKT_IV;
+ w4.s.param1 = BIT(9);
+ w4.s.param1 |= ROC_IE_ON_PER_PKT_IV;
inst_tmpl->w4 = w4.u64;
w7.u64 = 0;
@@ -477,6 +478,7 @@ cn9k_ipsec_inb_sa_create(struct cnxk_cpt_qp *qp,
w4.u64 = 0;
w4.s.opcode_major = ROC_IE_ON_MAJOR_OP_PROCESS_INBOUND_IPSEC;
w4.s.opcode_minor = ctx_len >> 3;
+ w4.s.param2 = BIT(12);
inst_tmpl->w4 = w4.u64;
w7.u64 = 0;
--
2.22.0
More information about the dev
mailing list