Skip to content

Commit

Permalink
crypto/cnxk: support IPv6 mixed tunnel mode
Browse files Browse the repository at this point in the history
Adds IPv6 mixed tunnel mode support for cn9k.

Signed-off-by: Archana Muniganti <[email protected]>
Acked-by: Anoob Joseph <[email protected]>
Acked-by: Akhil Goyal <[email protected]>
  • Loading branch information
MunigantiArchana authored and Akhil Goyal committed Nov 4, 2021
1 parent 30351b0 commit 3f956ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/crypto/cnxk/cn9k_ipsec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3f956ce

Please sign in to comment.