From: Sivaramakrishnan Venkat <venkatx.sivaramakrishnan@intel.com>
To: Kai Ji <kai.ji@intel.com>
Cc: dev@dpdk.org, stable@dpdk.org, gakhil@marvell.com,
Sivaramakrishnan Venkat <venkatx.sivaramakrishnan@intel.com>,
arkadiuszx.kusztal@intel.com
Subject: [PATCH v1] crypto/qat: skip SM3 HMAC on QAT when no SM3 slice exists
Date: Mon, 13 Nov 2023 16:22:44 +0000 [thread overview]
Message-ID: <20231113162245.327793-1-venkatx.sivaramakrishnan@intel.com> (raw)
Add check to skip SM3 HMAC on QAT when no SM3 slice exists
Fixes: 171c655 ("crypto/qat: add SM3 HMAC to GEN4 devices")
Cc: arkadiuszx.kusztal@intel.com
Cc: stable@dpdk.org
Signed-off-by: Sivaramakrishnan Venkat <venkatx.sivaramakrishnan@intel.com>
---
drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c b/drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c
index 0a939161f9..93c64abc6e 100644
--- a/drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c
+++ b/drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c
@@ -243,7 +243,9 @@ qat_sym_crypto_cap_get_gen3(struct qat_cryptodev_private *internals,
}
if (slice_map & ICP_ACCEL_MASK_SM3_SLICE && (
check_auth_capa(&capabilities[iter],
- RTE_CRYPTO_AUTH_SM3))) {
+ RTE_CRYPTO_AUTH_SM3) ||
+ check_auth_capa(&capabilities[iter],
+ RTE_CRYPTO_AUTH_SM3_HMAC))) {
continue;
}
memcpy(addr + curr_capa, capabilities + iter,
--
2.25.1
next reply other threads:[~2023-11-13 16:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-13 16:22 Sivaramakrishnan Venkat [this message]
2023-11-13 17:39 ` Power, Ciara
2023-11-16 17:55 ` Akhil Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231113162245.327793-1-venkatx.sivaramakrishnan@intel.com \
--to=venkatx.sivaramakrishnan@intel.com \
--cc=arkadiuszx.kusztal@intel.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
--cc=kai.ji@intel.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).