DPDK patches and discussions
 help / color / mirror / Atom feed
From: Akhil Goyal <gakhil@marvell.com>
To: Tejasree Kondoj <ktejasree@marvell.com>
Cc: Anoob Joseph <anoobj@marvell.com>,
	Aakash Sasidharan <asasidharan@marvell.com>,
	Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>,
	Vidya Sagar Velumuri <vvelumuri@marvell.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [PATCH 13/15] crypto/cnxk: add support for raw APIs
Date: Sun, 24 Sep 2023 09:14:52 +0000	[thread overview]
Message-ID: <CO6PR18MB44844970B683708FB3EE553DD8FDA@CO6PR18MB4484.namprd18.prod.outlook.com> (raw)
In-Reply-To: <20230921114820.2526810-14-ktejasree@marvell.com>

> Subject: [PATCH 13/15] crypto/cnxk: add support for raw APIs
> 
> From: Anoob Joseph <anoobj@marvell.com>
> 
> Add crypto RAW API support in cnxk PMD
> Enable the flag to allow execution of raw test suite.
> 
> Signed-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>
> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> ---
>  drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 459 ++++++++++++++++++++++
>  drivers/crypto/cnxk/cnxk_cryptodev.c      |  20 +-
>  drivers/crypto/cnxk/cnxk_cryptodev_ops.h  |   1 +
>  drivers/crypto/cnxk/cnxk_se.h             | 293 ++++++++++++++
>  4 files changed, 760 insertions(+), 13 deletions(-)


> diff --git a/drivers/crypto/cnxk/cnxk_cryptodev.c
> b/drivers/crypto/cnxk/cnxk_cryptodev.c
> index 4fa1907cea..4819a14184 100644
> --- a/drivers/crypto/cnxk/cnxk_cryptodev.c
> +++ b/drivers/crypto/cnxk/cnxk_cryptodev.c
> @@ -13,22 +13,16 @@
>  uint64_t
>  cnxk_cpt_default_ff_get(void)
>  {
> -	uint64_t ff = RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO |
> -		      RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO |
> -		      RTE_CRYPTODEV_FF_HW_ACCELERATED |
> -		      RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT |
> +	uint64_t ff = RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO |
> RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO |
> +		      RTE_CRYPTODEV_FF_HW_ACCELERATED |
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT |
>  		      RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP |
> -		      RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING |
> -		      RTE_CRYPTODEV_FF_IN_PLACE_SGL |
> -		      RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT |
> -		      RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT |
> -		      RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT |
> -		      RTE_CRYPTODEV_FF_SYM_SESSIONLESS |
> -		      RTE_CRYPTODEV_FF_DIGEST_ENCRYPTED |
> -		      RTE_CRYPTODEV_FF_SECURITY;
> +		      RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING |
> RTE_CRYPTODEV_FF_IN_PLACE_SGL |
> +		      RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT |
> RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT |
> +		      RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT |
> RTE_CRYPTODEV_FF_SYM_SESSIONLESS |
> +		      RTE_CRYPTODEV_FF_DIGEST_ENCRYPTED |
> RTE_CRYPTODEV_FF_SECURITY;
> 
>  	if (roc_model_is_cn10k())
> -		ff |= RTE_CRYPTODEV_FF_SECURITY_INNER_CSUM;
> +		ff |= RTE_CRYPTODEV_FF_SECURITY_INNER_CSUM |
> RTE_CRYPTODEV_FF_SYM_RAW_DP;
> 
>  	return ff;
>  }

Update cnxk.ini file accordingly.



  reply	other threads:[~2023-09-24  9:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-21 11:48 [PATCH 00/15] fixes and improvements to cnxk crypto PMD Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 01/15] crypto/cnxk: clear rptr and dptr fields Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 02/15] common/cnxk: update SE context fields to match ucode spec Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 03/15] common/cnxk: set cipher key only for non-null cipher Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 04/15] crypto/cnxk: fix private key length in ECDSA param Tejasree Kondoj
2023-09-24  9:15   ` Akhil Goyal
2023-09-21 11:48 ` [PATCH 05/15] crypto/cnxk: fix IPsec CCM and GCM capabilities Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 06/15] crypto/cnxk: remove pdcp chain bit from capabilities Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 07/15] crypto/cnxk: check for sg version in SE engine capabilities Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 08/15] crypto/cnxk: fix control flow issues Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 09/15] crypto/cnxk: make IV pointers as constant Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 10/15] crypto/cnxk: set PDCP chain IV offset based on FVC Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 11/15] crypto/cnxk: minor shuffling in the sess structure Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 12/15] crypto/cnxk: add support for packets with cipher len zero Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 13/15] crypto/cnxk: add support for raw APIs Tejasree Kondoj
2023-09-24  9:14   ` Akhil Goyal [this message]
2023-09-21 11:48 ` [PATCH 14/15] crypto/cnxk: update the iv from proper param for gmac Tejasree Kondoj
2023-09-21 11:48 ` [PATCH 15/15] test/crypto: enable raw crypto tests for crypto_cn10k Tejasree Kondoj

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=CO6PR18MB44844970B683708FB3EE553DD8FDA@CO6PR18MB4484.namprd18.prod.outlook.com \
    --to=gakhil@marvell.com \
    --cc=anoobj@marvell.com \
    --cc=asasidharan@marvell.com \
    --cc=dev@dpdk.org \
    --cc=gmuthukrishn@marvell.com \
    --cc=ktejasree@marvell.com \
    --cc=vvelumuri@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).