DPDK patches and discussions
 help / color / mirror / Atom feed
From: Gosia Bakota <gosia.bakota@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH v2] symmetric crypto, set-message-field-to-zero-in-SGL-case
Date: Wed, 12 Jun 2019 15:41:27 +0100	[thread overview]
Message-ID: <20190612144127.65264-1-gosia.bakota@intel.com> (raw)
In-Reply-To: <1559038037-1544-1-git-send-email-gosia.bakota@intel.com>

Fixes: e09231eaa2af ("crypto/qat: add SGL capability")
Cc: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Cc: stable@dpdk.org

Signed-off-by: Gosia Bakota <gosia.bakota@intel.com>
---
 drivers/crypto/qat/qat_sym.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/crypto/qat/qat_sym.c b/drivers/crypto/qat/qat_sym.c
index 8801ca567..7515a55d0 100644
--- a/drivers/crypto/qat/qat_sym.c
+++ b/drivers/crypto/qat/qat_sym.c
@@ -530,6 +530,8 @@ qat_sym_build_request(void *in_op, uint8_t *out_msg,
 			qat_req->comn_mid.dest_data_addr =
 					cookie->qat_sgl_dst_phys_addr;
 		}
+		qat_req->comn_mid.src_length = 0;
+		qat_req->comn_mid.dst_length = 0;
 	} else {
 		qat_req->comn_mid.src_data_addr = src_buf_start;
 		qat_req->comn_mid.dest_data_addr = dst_buf_start;
-- 
2.13.6


  parent reply	other threads:[~2019-06-12 13:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-28 10:07 [dpdk-dev] [PATCH] crypto/qat: set message field to zero in sym SGL case Gosia Bakota
2019-05-28 10:41 ` Trahe, Fiona
2019-06-12 14:41 ` Gosia Bakota [this message]
2019-06-12 17:31 ` [dpdk-dev] [PATCH v2] symmetric crypto, set message field to zero in " Gosia Bakota
2019-06-12 16:53   ` Trahe, Fiona
2019-06-19 14:47     ` 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=20190612144127.65264-1-gosia.bakota@intel.com \
    --to=gosia.bakota@intel.com \
    --cc=dev@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).