From 3f956cea85aee3b19d5a9b041508fdb6c72af417 Mon Sep 17 00:00:00 2001 From: Archana Muniganti Date: Thu, 28 Oct 2021 22:22:28 +0530 Subject: [PATCH] crypto/cnxk: support IPv6 mixed tunnel mode Adds IPv6 mixed tunnel mode support for cn9k. Signed-off-by: Archana Muniganti Acked-by: Anoob Joseph Acked-by: Akhil Goyal --- 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.39.5