X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcrypto%2Focteontx2%2Fotx2_ipsec_po_ops.h;h=f4cab1981192b931ca6ddddf639a5ebff8c9efed;hb=306a2fcd1b2d549b4094232f0a03c9c62228e298;hp=5dd0b391a943c03c541092c10acab628e1f710bd;hpb=4edede7bc6ee15d2d563c91c5ce47bd7567b1c90;p=dpdk.git diff --git a/drivers/crypto/octeontx2/otx2_ipsec_po_ops.h b/drivers/crypto/octeontx2/otx2_ipsec_po_ops.h index 5dd0b391a9..f4cab19811 100644 --- a/drivers/crypto/octeontx2/otx2_ipsec_po_ops.h +++ b/drivers/crypto/octeontx2/otx2_ipsec_po_ops.h @@ -111,7 +111,7 @@ process_outb_sa(struct rte_crypto_op *cop, memcpy(&hdr->iv[0], &sa->iv.gcm.nonce, 4); memcpy(&hdr->iv[4], rte_crypto_op_ctod_offset(cop, uint8_t *, sess->iv_offset), sess->iv_length); - } else if (ctl_wrd->auth_type == OTX2_IPSEC_FP_SA_ENC_AES_CBC) { + } else if (ctl_wrd->auth_type == OTX2_IPSEC_PO_SA_AUTH_SHA1) { memcpy(&hdr->iv[0], rte_crypto_op_ctod_offset(cop, uint8_t *, sess->iv_offset), sess->iv_length); } @@ -123,7 +123,8 @@ process_outb_sa(struct rte_crypto_op *cop, req->ist.ei0 = word0.u64; req->ist.ei1 = rte_pktmbuf_iova(m_src); req->ist.ei2 = req->ist.ei1; - req->ist.ei3 = sess->ucmd_w3; + + sa->esn_hi = sess->seq_hi; hdr->seq = rte_cpu_to_be_32(sess->seq_lo); hdr->ip_id = rte_cpu_to_be_32(sess->ip_id); @@ -170,7 +171,6 @@ process_inb_sa(struct rte_crypto_op *cop, req->ist.ei0 = word0.u64; req->ist.ei1 = rte_pktmbuf_iova(m_src); req->ist.ei2 = req->ist.ei1; - req->ist.ei3 = sess->ucmd_w3; exit: *prep_req = req;