From: Arek Kusztal Date: Wed, 12 Dec 2018 19:59:04 +0000 (+0100) Subject: crypto/qat: fix message for NULL algo setting unused counter X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4dc73ff7042a27602a738be4450a8bae39388c4f;p=dpdk.git crypto/qat: fix message for NULL algo setting unused counter NULL algo algo does not to set counter flag so it should be zeroed. Fixes: db0e952a5c01 ("crypto/qat: add NULL capability") Cc: stable@dpdk.org Signed-off-by: Arek Kusztal Acked-by: Fiona Trahe Acked-by: Marko Kovacevic --- diff --git a/drivers/crypto/qat/qat_sym_session.c b/drivers/crypto/qat/qat_sym_session.c index d8cc702862..4d7ec01d49 100644 --- a/drivers/crypto/qat/qat_sym_session.c +++ b/drivers/crypto/qat/qat_sym_session.c @@ -1489,6 +1489,7 @@ int qat_sym_session_aead_create_cd_auth(struct qat_sym_session *cdesc, || cdesc->qat_hash_alg == ICP_QAT_HW_AUTH_ALGO_ZUC_3G_128_EIA3 || cdesc->qat_hash_alg == ICP_QAT_HW_AUTH_ALGO_AES_XCBC_MAC || cdesc->qat_hash_alg == ICP_QAT_HW_AUTH_ALGO_AES_CBC_MAC + || cdesc->qat_hash_alg == ICP_QAT_HW_AUTH_ALGO_NULL ) hash->auth_counter.counter = 0; else {