DPDK patches and discussions
 help / color / mirror / Atom feed
From: Deepak Kumar Jain <deepak.k.jain@intel.com>
To: pablo.de.lara.guarch@intel.com, fiona.trahe@intel.com,
	john.griffin@intel.com
Cc: dev@dpdk.org, Deepak Kumar Jain <deepak.k.jain@intel.com>
Subject: [dpdk-dev] [PATCH 1/2] crypto/qat: add NULL capability to Intel QAT driver
Date: Thu, 18 Aug 2016 14:34:31 +0100	[thread overview]
Message-ID: <1471527272-81483-2-git-send-email-deepak.k.jain@intel.com> (raw)
In-Reply-To: <1471527272-81483-1-git-send-email-deepak.k.jain@intel.com>

enabled NULL crypto for Intel(R) QuickAssist Technology

Signed-off-by: Deepak Kumar Jain <deepak.k.jain@intel.com>
---
 doc/guides/cryptodevs/qat.rst                    | 3 ++-
 drivers/crypto/qat/qat_adf/qat_algs_build_desc.c | 2 ++
 drivers/crypto/qat/qat_crypto.c                  | 4 ++++
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/doc/guides/cryptodevs/qat.rst b/doc/guides/cryptodevs/qat.rst
index 78a734f..bb62f22 100644
--- a/doc/guides/cryptodevs/qat.rst
+++ b/doc/guides/cryptodevs/qat.rst
@@ -49,6 +49,7 @@ Cipher algorithms:
 * ``RTE_CRYPTO_SYM_CIPHER_AES256_CTR``
 * ``RTE_CRYPTO_SYM_CIPHER_SNOW3G_UEA2``
 * ``RTE_CRYPTO_CIPHER_AES_GCM``
+* ``RTE_CRYPTO_CIPHER_NULL``
 
 Hash algorithms:
 
@@ -60,7 +61,7 @@ Hash algorithms:
 * ``RTE_CRYPTO_AUTH_AES_XCBC_MAC``
 * ``RTE_CRYPTO_AUTH_SNOW3G_UIA2``
 * ``RTE_CRYPTO_AUTH_MD5_HMAC``
-
+* ``RTE_CRYPTO_AUTH_NULL``
 
 Limitations
 -----------
diff --git a/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c b/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c
index af8c176..d9437bc 100644
--- a/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c
+++ b/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c
@@ -720,6 +720,8 @@ int qat_alg_aead_session_create_content_desc_auth(struct qat_session *cdesc,
 		}
 		state2_size = ICP_QAT_HW_MD5_STATE2_SZ;
 		break;
+	case ICP_QAT_HW_AUTH_ALGO_NULL:
+		break;
 	default:
 		PMD_DRV_LOG(ERR, "Invalid HASH alg %u", cdesc->qat_hash_alg);
 		return -EFAULT;
diff --git a/drivers/crypto/qat/qat_crypto.c b/drivers/crypto/qat/qat_crypto.c
index a474512..434ff81 100644
--- a/drivers/crypto/qat/qat_crypto.c
+++ b/drivers/crypto/qat/qat_crypto.c
@@ -427,6 +427,8 @@ qat_crypto_sym_configure_session_cipher(struct rte_cryptodev *dev,
 		session->qat_mode = ICP_QAT_HW_CIPHER_ECB_MODE;
 		break;
 	case RTE_CRYPTO_CIPHER_NULL:
+		session->qat_mode = ICP_QAT_HW_CIPHER_ECB_MODE;
+		break;
 	case RTE_CRYPTO_CIPHER_3DES_ECB:
 	case RTE_CRYPTO_CIPHER_3DES_CBC:
 	case RTE_CRYPTO_CIPHER_AES_ECB:
@@ -558,6 +560,8 @@ qat_crypto_sym_configure_session_auth(struct rte_cryptodev *dev,
 		session->qat_hash_alg = ICP_QAT_HW_AUTH_ALGO_MD5;
 		break;
 	case RTE_CRYPTO_AUTH_NULL:
+		session->qat_hash_alg = ICP_QAT_HW_AUTH_ALGO_NULL;
+		break;
 	case RTE_CRYPTO_AUTH_SHA1:
 	case RTE_CRYPTO_AUTH_SHA256:
 	case RTE_CRYPTO_AUTH_SHA512:
-- 
2.5.5

  reply	other threads:[~2016-08-18 13:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-18 13:34 [dpdk-dev] [PATCH 0/2] add NULL crypto support in " Deepak Kumar Jain
2016-08-18 13:34 ` Deepak Kumar Jain [this message]
2016-08-18 13:34 ` [dpdk-dev] [PATCH 2/2] app/test: add test cases for NULL for " Deepak Kumar Jain
2016-09-07 18:05 ` [dpdk-dev] [PATCH 0/2] add NULL crypto support in " De Lara Guarch, Pablo
2016-09-07 19:33   ` Jain, Deepak K
2016-09-12 20:00 ` [dpdk-dev] [PATCH v2 " Deepak Kumar Jain
2016-09-12 20:00   ` [dpdk-dev] [PATCH v2 1/2] crypto/qat: add NULL capability to " Deepak Kumar Jain
2016-09-12 20:00   ` [dpdk-dev] [PATCH v2 2/2] app/test: add test cases for NULL for " Deepak Kumar Jain
2016-09-13  8:59   ` [dpdk-dev] [PATCH v3 0/2] add NULL crypto support in " Deepak Kumar Jain
2016-09-13  8:59     ` [dpdk-dev] [PATCH v3 1/2] crypto/qat: add NULL capability to " Deepak Kumar Jain
2016-09-15 13:34       ` Trahe, Fiona
2016-09-16  1:43       ` De Lara Guarch, Pablo
2016-09-13  8:59     ` [dpdk-dev] [PATCH v3 2/2] app/test: add test cases for NULL for " Deepak Kumar Jain
2016-09-15 13:48       ` Trahe, Fiona
2016-09-16  8:57   ` [dpdk-dev] [PATCH v4 0/2] add NULL crypto support in " Deepak Kumar Jain
2016-09-16  8:57     ` [dpdk-dev] [PATCH v4 1/2] crypto/qat: add NULL capability to " Deepak Kumar Jain
2016-09-16  8:57     ` [dpdk-dev] [PATCH v4 2/2] app/test: add test cases for NULL for " Deepak Kumar Jain
2016-09-16 21:54     ` [dpdk-dev] [PATCH v4 0/2] add NULL crypto support in " De Lara Guarch, Pablo

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=1471527272-81483-2-git-send-email-deepak.k.jain@intel.com \
    --to=deepak.k.jain@intel.com \
    --cc=dev@dpdk.org \
    --cc=fiona.trahe@intel.com \
    --cc=john.griffin@intel.com \
    --cc=pablo.de.lara.guarch@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).