From: "Zhang, Roy Fan" <roy.fan.zhang@intel.com>
To: "Dybkowski, AdamX" <adamx.dybkowski@intel.com>,
"dev@dpdk.org" <dev@dpdk.org>,
"Kusztal, ArkadiuszX" <arkadiuszx.kusztal@intel.com>,
"gakhil@marvell.com" <gakhil@marvell.com>
Subject: Re: [dpdk-dev] [PATCH] crypto/qat: fix NULL authentication request
Date: Mon, 10 May 2021 11:41:49 +0000 [thread overview]
Message-ID: <BL0PR11MB304322A0C6929D8B9850059AB8549@BL0PR11MB3043.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20210510102011.44343-1-adamx.dybkowski@intel.com>
> -----Original Message-----
> From: Dybkowski, AdamX <adamx.dybkowski@intel.com>
> Sent: Monday, May 10, 2021 11:20 AM
> To: dev@dpdk.org; Zhang, Roy Fan <roy.fan.zhang@intel.com>; Kusztal,
> ArkadiuszX <arkadiuszx.kusztal@intel.com>; gakhil@marvell.com
> Cc: Dybkowski, AdamX <adamx.dybkowski@intel.com>
> Subject: [PATCH] crypto/qat: fix NULL authentication request
>
> 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
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
next prev parent reply other threads:[~2021-05-10 11:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-10 10:20 Adam Dybkowski
2021-05-10 11:41 ` Zhang, Roy Fan [this message]
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=BL0PR11MB304322A0C6929D8B9850059AB8549@BL0PR11MB3043.namprd11.prod.outlook.com \
--to=roy.fan.zhang@intel.com \
--cc=adamx.dybkowski@intel.com \
--cc=arkadiuszx.kusztal@intel.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.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).