]> git.droids-corp.org - dpdk.git/blobdiff - drivers/crypto/cnxk/cn10k_ipsec.c
crypto/cnxk: support AH mode
[dpdk.git] / drivers / crypto / cnxk / cn10k_ipsec.c
index 15ebd57f527f05b59bc90c1bf2b7c40b1e5999cb..0c9e24468ab5bea59fd08e96afa2ec7bbdfee647 100644 (file)
@@ -74,7 +74,7 @@ cn10k_ipsec_outb_sa_create(struct roc_cpt *roc_cpt, struct roc_cpt_lf *lf,
                if (crypto_xfrm->type == RTE_CRYPTO_SYM_XFORM_AEAD) {
                        sa->iv_offset = crypto_xfrm->aead.iv.offset;
                        sa->iv_length = crypto_xfrm->aead.iv.length;
-               } else {
+               } else if (crypto_xfrm->type == RTE_CRYPTO_SYM_XFORM_CIPHER) {
                        sa->iv_offset = crypto_xfrm->cipher.iv.offset;
                        sa->iv_length = crypto_xfrm->cipher.iv.length;
                }