From: Adam Dybkowski <adamx.dybkowski@intel.com>
To: dev@dpdk.org, roy.fan.zhang@intel.com,
arkadiuszx.kusztal@intel.com, gakhil@marvell.com
Cc: Adam Dybkowski <adamx.dybkowski@intel.com>
Subject: [dpdk-dev] [PATCH] crypto/qat: fix NULL authentication request
Date: Mon, 10 May 2021 11:20:11 +0100 [thread overview]
Message-ID: <20210510102011.44343-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")
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
next reply other threads:[~2021-05-10 10:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-10 10:20 Adam Dybkowski [this message]
2021-05-10 11:41 ` Zhang, Roy Fan
2021-05-12 14:16 ` Iremonger, Bernard
2021-05-12 16:08 ` 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=20210510102011.44343-1-adamx.dybkowski@intel.com \
--to=adamx.dybkowski@intel.com \
--cc=arkadiuszx.kusztal@intel.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
--cc=roy.fan.zhang@intel.com \
/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).