From: Vakul Garg Date: Mon, 14 Oct 2019 06:53:23 +0000 (+0530) Subject: crypto/dpaa_sec: fix auth-cipher check for AEAD X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=98e84273902045640b2c6ecc438412c4f1202e15;p=dpdk.git crypto/dpaa_sec: fix auth-cipher check for AEAD The code shall also check aead as non auth-cipher case Fixes: 1f14d500bce1 ("crypto/dpaa_sec: support IPsec protocol offload") Cc: stable@dpdk.org Signed-off-by: Vakul Garg Acked-by: Akhil Goyal --- diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index 17c1756044..27a9226767 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -266,7 +266,8 @@ static inline int is_auth_cipher(dpaa_sec_session *ses) return ((ses->cipher_alg != RTE_CRYPTO_CIPHER_NULL) && (ses->auth_alg != RTE_CRYPTO_AUTH_NULL) && (ses->proto_alg != RTE_SECURITY_PROTOCOL_PDCP) && - (ses->proto_alg != RTE_SECURITY_PROTOCOL_IPSEC)); + (ses->proto_alg != RTE_SECURITY_PROTOCOL_IPSEC) && + (ses->aead_alg == 0)); } static inline int is_proto_ipsec(dpaa_sec_session *ses)