From: Adam Dybkowski <adamx.dybkowski@intel.com>
To: stable@dpdk.org, roy.fan.zhang@intel.com, bernard.iremonger@intel.com
Cc: Adam Dybkowski <adamx.dybkowski@intel.com>
Subject: [dpdk-stable] [PATCH] crypto/qat: fix NULL authentication request
Date: Thu, 13 May 2021 12:10:16 +0100 [thread overview]
Message-ID: <20210513111016.28677-1-adamx.dybkowski@intel.com> (raw)
This patch fixes the NULL auth generation case where the request
shouldn't contain the authentication result address. Allows to run
ipsec_autotest with a QAT device.
Fixes: 65beb9abca6d ("crypto/qat: fix null auth when using VFIO")
Cc: stable@dpdk.org
Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
---
drivers/crypto/qat/qat_sym.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/qat/qat_sym.c b/drivers/crypto/qat/qat_sym.c
index a1f5676c04..9415ec7d32 100644
--- a/drivers/crypto/qat/qat_sym.c
+++ b/drivers/crypto/qat/qat_sym.c
@@ -399,8 +399,10 @@ qat_sym_build_request(void *in_op, uint8_t *out_msg,
}
min_ofs = auth_ofs;
- auth_param->auth_res_addr =
- op->sym->auth.digest.phys_addr;
+ if (ctx->qat_hash_alg != ICP_QAT_HW_AUTH_ALGO_NULL ||
+ ctx->auth_op == ICP_QAT_HW_AUTH_VERIFY)
+ auth_param->auth_res_addr =
+ op->sym->auth.digest.phys_addr;
}
--
2.25.1
reply other threads:[~2021-05-13 11:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20210513111016.28677-1-adamx.dybkowski@intel.com \
--to=adamx.dybkowski@intel.com \
--cc=bernard.iremonger@intel.com \
--cc=roy.fan.zhang@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).