[PATCH] examples/ipsec-secgw: fix cryptodev and eventdev ID

2024-12-01 Thread Tejasree Kondoj
Fixing cryptodev and eventdev ID numbers. Fixes: 0dbe550a4af5 ("examples/ipsec-secgw: initialize event crypto adapter") Cc: sta...@dpdk.org Signed-off-by: Tejasree Kondoj --- examples/ipsec-secgw/event_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exam

[PATCH v2] examples/ipsec-secgw: fix dequeue count from cryptodev

2024-09-13 Thread Tejasree Kondoj
returned from cryptodev. Fixes: a2b445b810ac ("examples/ipsec-secgw: allow larger burst size for vectors") Cc: sta...@dpdk.org Signed-off-by: Tejasree Kondoj --- v2: fixed checkpatch warning examples/ipsec-secgw/ipsec-secgw.c | 6 -- examples/ipsec-secgw/ipsec_process.c | 3 ++

[PATCH] examples/ipsec-secgw: fix dequeue count from cryptodev

2024-09-12 Thread Tejasree Kondoj
returned from cryptodev. Fixes: a2b445b810ac ("examples/ipsec-secgw: allow larger burst size for vectors") Cc: sta...@dpdk.org Signed-off-by: Tejasree Kondoj Change-Id: I3ab1b6d3aef5385f214f51930bfd521e73255834 --- examples/ipsec-secgw/ipsec-secgw.c | 6 -- examples/ipsec-secgw/ipsec

[PATCH 09/11] crypto/cnxk: add PMD API to flush CTX

2024-09-05 Thread Tejasree Kondoj
From: Anoob Joseph Add PMD API to flush CPT CTX entry. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 24 ++ drivers/crypto/cnxk/rte_pmd_cnxk_crypto.h | 25 +++ drivers/crypto/cnxk/version.map | 1 + 3 files change

[PATCH 11/11] crypto/cnxk: add PMD API to get qp stats

2024-09-05 Thread Tejasree Kondoj
From: Anoob Joseph Add PMD API to get CPT LF(QP) stats. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 32 + drivers/crypto/cnxk/rte_pmd_cnxk_crypto.h | 34 +++ drivers/crypto/cnxk/version.map | 1 + 3 files change

[PATCH 08/11] crypto/cnxk: add PMD API for getting CPTR

2024-09-05 Thread Tejasree Kondoj
From: Anoob Joseph CPTR address is the context address used by hardware. Add PMD API to retrieve the hardware address from rte_cryptodev/rte_security session. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 49 +++ drivers/crypto/cnxk/rte_pmd_cnx

[PATCH 07/11] crypto/cnxk: use opaque pointer for PMD APIs

2024-09-05 Thread Tejasree Kondoj
From: Anoob Joseph Use opaque pointer instead of void * for PMD APIs. Usage of forward declaration and opaque pointer would allow compiler to prevent unintended usage which cannot be prevented with void *. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 12 ++---

[PATCH 10/11] crypto/cnxk: add CPTR read and write

2024-09-05 Thread Tejasree Kondoj
From: Anoob Joseph Add PMD API for CPTR read and write. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 71 +++ drivers/crypto/cnxk/rte_pmd_cnxk_crypto.h | 52 + drivers/crypto/cnxk/version.map | 2 + 3 files changed, 1

[PATCH 06/11] common/cnxk: move algo enums to common

2024-09-05 Thread Tejasree Kondoj
From: Anoob Joseph The enums are same between 9k & 10k. Move to common. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/cnxk_security.c | 106 ++- drivers/common/cnxk/roc_ie.h | 22 + drivers/common/cnxk/roc_ie_on.h | 22 - drivers/co

[PATCH 05/11] common/cnxk: remove abort from flush API

2024-09-05 Thread Tejasree Kondoj
From: Anoob Joseph Instead of calling abort() return error code so that the caller can handle as required. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_cpt.c | 2 +- drivers/crypto/cnxk/cn10k_ipsec.c | 12 ++-- drivers/crypto/cnxk/cn10k_tls.c | 12 ++-- 3 file

[PATCH 01/11] crypto/cnxk: align passthrough data for SM ciphers

2024-09-05 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add required padding to make passthrough data length multiple of 16 bytes for SM ciphers Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cnxk_se.h | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/

[PATCH 04/11] common/cnxk: rearrange to remove hole

2024-09-05 Thread Tejasree Kondoj
From: Anoob Joseph Rearrange fields to remove hole. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_se.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_se.h b/drivers/common/cnxk/roc_se.h index 50741a0b81..ede8d69c0e 100644 --- a/drivers/com

[PATCH 00/11] fixes and improvements to cnxk crypto PMD

2024-09-05 Thread Tejasree Kondoj
Adding new PMD APIs and improvements to cnxk crypto PMD. Anoob Joseph (9): common/cnxk: ensure CPTR is 128B aligned common/cnxk: rearrange to remove hole common/cnxk: remove abort from flush API common/cnxk: move algo enums to common crypto/cnxk: use opaque pointer for PMD APIs crypto/

[PATCH 03/11] common/cnxk: ensure CPTR is 128B aligned

2024-09-05 Thread Tejasree Kondoj
From: Anoob Joseph Make sure CPTR is 128B aligned. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_cpt.c | 5 + drivers/common/cnxk/roc_platform.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/common/cnxk/roc_cpt.c b/drivers/common/cnxk/roc_cpt.c index aba2a49d

[PATCH 02/11] crypto/cnxk: add multi segment support for Rx inject

2024-09-05 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add support for multi segmented packet in Rx inject. Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 53 ++- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 9 +++- 2 files changed, 50 insertions(+), 12 deletions(-

RE: [EXT] Re: [PATCH v2 13/15] crypto/cnxk: add support for raw APIs

2023-10-11 Thread Tejasree Kondoj
; ; Vidya Sagar Velumuri ; > Tejasree Kondoj > Cc: dev@dpdk.org; Aakash Sasidharan ; > Gowrishankar Muthukrishnan ; > dev@dpdk.org > Subject: [EXT] Re: [PATCH v2 13/15] crypto/cnxk: add support for raw APIs > > External Email > >

[PATCH] crypto/cnxk: fix RISC-V compilation

2023-10-11 Thread Tejasree Kondoj
Fixing RISC-V compilation failure by adding check for NULL pointer. Fixes: 905537accdd1 ("crypto/cnxk: support raw APIs") Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_se.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/driv

[PATCH v2 15/15] test/crypto: enable raw crypto tests for crypto_cn10k

2023-09-25 Thread Tejasree Kondoj
From: Anoob Joseph Enable raw crypto tests with crypto_cn10k. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c | 8 1 file changed, 8 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 3a51a5d00f..3f1172e191 100644 --- a/app/test/test_cryp

[PATCH v2 14/15] crypto/cnxk: update the iv from proper param for gmac

2023-09-25 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri In raw crypto, aad and auth iv are provided in same param. Update the auth_iv from proper param in case of GMAC. Skip the raw for SM ciphers and auths Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 6 +++--- drivers/crypto/cnxk/c

[PATCH v2 13/15] crypto/cnxk: add support for raw APIs

2023-09-25 Thread Tejasree Kondoj
From: Anoob Joseph Add crypto RAW API support in cnxk PMD Enable the flag to allow execution of raw test suite. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Anoob Joseph --- doc/guides/cryptodevs/features/cn10k.ini | 1 + drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 459 ++

[PATCH v2 12/15] crypto/cnxk: add support for packets with cipher len zero

2023-09-25 Thread Tejasree Kondoj
From: Aakash Sasidharan For cipher only zero length packets, submit it to CPT with passthrough opcode. Signed-off-by: Aakash Sasidharan --- drivers/crypto/cnxk/cnxk_se.h | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/driver

[PATCH v2 11/15] crypto/cnxk: minor shuffling in the sess structure

2023-09-25 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Shuffle the fields in the session structure to make the fields byte aligned Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cnxk_se.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/crypto/cnx

[PATCH v2 10/15] crypto/cnxk: set PDCP chain IV offset based on FVC

2023-09-25 Thread Tejasree Kondoj
Set PDCP chain IV offset based on zuc 256 firmware Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/hw/cpt.h | 4 +++- drivers/common/cnxk/roc_se.h | 3 +++ drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 10 -- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 5

[PATCH v2 09/15] crypto/cnxk: make IV pointers as constant

2023-09-25 Thread Tejasree Kondoj
Make IV pointers as constant. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/roc_se.h | 4 +- drivers/crypto/cnxk/cnxk_se.h | 140 +++--- 2 files changed, 80 insertions(+), 64 deletions(-) diff --git a/drivers/common/cnxk/roc_se.h b/drivers/common/cnxk

[PATCH v2 08/15] crypto/cnxk: fix control flow issues

2023-09-25 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri This patch fixes below coverity issues. Coverity issue: 393678 Fixes: 21c1c303148b ("crypto/cnxk: support SM4") Coverity issue: 393679 Fixes: 21c1c303148b ("crypto/cnxk: support SM4") Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cnxk_se.h | 22 +-

[PATCH v2 07/15] crypto/cnxk: check for sg version in SE engine capabilities

2023-09-25 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Check for supported SG version in SE engine capabilities. Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c

[PATCH v2 06/15] crypto/cnxk: remove pdcp chain bit from capabilities

2023-09-25 Thread Tejasree Kondoj
Removing pdcp_chain bit from capabilities as it is supported on all platforms. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/hw/cpt.h | 3 +-- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 15 --- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a

[PATCH v2 05/15] crypto/cnxk: fix IPsec CCM and GCM capabilities

2023-09-25 Thread Tejasree Kondoj
ned-off-by: Anoob Joseph Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c index

[PATCH v2 04/15] crypto/cnxk: update private key length in ECDSA param

2023-09-25 Thread Tejasree Kondoj
From: Gowrishankar Muthukrishnan Updating private key length in ECDSA op param to include alignment, for new microcode. Signed-off-by: Gowrishankar Muthukrishnan --- drivers/crypto/cnxk/cnxk_ae.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_a

[PATCH v2 03/15] common/cnxk: set cipher key only for non-null cipher

2023-09-25 Thread Tejasree Kondoj
From: Anoob Joseph Set cipher key only for non-NULL cipher algorithms only. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_se.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/common/cnxk/roc_se.c b/drivers/common/cnxk/roc_se.c index 2662297315.

[PATCH v2 01/15] crypto/cnxk: clear rptr and dptr fields

2023-09-25 Thread Tejasree Kondoj
From: Anoob Joseph With SG version 2, hw requires valid rptr & dptr values. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 2 ++ drivers/crypto/cnxk/cnxk_se.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/crypto/cnxk/cn10k_cryptodev_ops.

[PATCH v2 02/15] common/cnxk: update SE context fields to match ucode spec

2023-09-25 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Update the fields in SE context and rename to keep it in sync with microcode spec. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_se.h | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/common/cnxk/roc_se.h b/drivers/

[PATCH v2 00/15] fixes and improvements to cnxk crypto PMD

2023-09-25 Thread Tejasree Kondoj
common/cnxk: set cipher key only for non-null cipher crypto/cnxk: add support for raw APIs test/crypto: enable raw crypto tests for crypto_cn10k Gowrishankar Muthukrishnan (1): crypto/cnxk: update private key length in ECDSA param Tejasree Kondoj (4): crypto/cnxk: fix IPsec CCM and GCM

[PATCH 15/15] test/crypto: enable raw crypto tests for crypto_cn10k

2023-09-21 Thread Tejasree Kondoj
From: Anoob Joseph Enable raw crypto tests with crypto_cn10k. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c | 8 1 file changed, 8 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 3a51a5d00f..3f1172e191 100644 --- a/app/test/test_cryp

[PATCH 14/15] crypto/cnxk: update the iv from proper param for gmac

2023-09-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri In raw crypto, aad and auth iv are provided in same param. Update the auth_iv from proper param in case of GMAC. Skip the raw for SM ciphers and auths Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 6 +++--- drivers/crypto/cnxk/c

[PATCH 13/15] crypto/cnxk: add support for raw APIs

2023-09-21 Thread Tejasree Kondoj
From: Anoob Joseph Add crypto RAW API support in cnxk PMD Enable the flag to allow execution of raw test suite. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 459 ++ drivers/crypto/cnxk/cnxk_cryptodev.c

[PATCH 12/15] crypto/cnxk: add support for packets with cipher len zero

2023-09-21 Thread Tejasree Kondoj
From: Aakash Sasidharan For cipher only zero length packets, submit it to CPT with passthrough opcode. Signed-off-by: Aakash Sasidharan --- drivers/crypto/cnxk/cnxk_se.h | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/driver

[PATCH 10/15] crypto/cnxk: set PDCP chain IV offset based on FVC

2023-09-21 Thread Tejasree Kondoj
Set PDCP chain IV offset based on zuc 256 firmware Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/hw/cpt.h | 4 +++- drivers/common/cnxk/roc_se.h | 3 +++ drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 10 -- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 5

[PATCH 11/15] crypto/cnxk: minor shuffling in the sess structure

2023-09-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Shuffle the fields in the session structure to make the fields byte aligned Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cnxk_se.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/crypto/cnx

[PATCH 09/15] crypto/cnxk: make IV pointers as constant

2023-09-21 Thread Tejasree Kondoj
Make IV pointers as constant. Signed-off-by: Tejasree Kondoj drivers/common/cnxk/roc_se.h | 4 +- drivers/crypto/cnxk/cnxk_se.h | 140 +++--- 2 files changed, 80 insertions(+), 64 deletions(-) diff --git a/drivers/common/cnxk/roc_se.h b/drivers/common/cnxk

[PATCH 08/15] crypto/cnxk: fix control flow issues

2023-09-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri This patch fixes below coverity issues. Coverity issue: 393678 Fixes: 21c1c303148b ("crypto/cnxk: support SM4") Coverity issue: 393679 Fixes: 21c1c303148b ("crypto/cnxk: support SM4") Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cnxk_se.h | 22 +-

[PATCH 07/15] crypto/cnxk: check for sg version in SE engine capabilities

2023-09-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Check for supported SG version in SE engine capabilities. Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c

[PATCH 06/15] crypto/cnxk: remove pdcp chain bit from capabilities

2023-09-21 Thread Tejasree Kondoj
Removing pdcp_chain bit from capabilities as it is supported on all platforms. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/hw/cpt.h | 3 +-- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 15 --- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a

[PATCH 04/15] crypto/cnxk: fix private key length in ECDSA param

2023-09-21 Thread Tejasree Kondoj
From: Gowrishankar Muthukrishnan Fix private key length in ECDSA op param to include alignment, for new microcode. Signed-off-by: Gowrishankar Muthukrishnan --- drivers/crypto/cnxk/cnxk_ae.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_ae.h b

[PATCH 05/15] crypto/cnxk: fix IPsec CCM and GCM capabilities

2023-09-21 Thread Tejasree Kondoj
ned-off-by: Anoob Joseph Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c index

[PATCH 03/15] common/cnxk: set cipher key only for non-null cipher

2023-09-21 Thread Tejasree Kondoj
From: Anoob Joseph Set cipher key only for non-NULL cipher algorithms only. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_se.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/common/cnxk/roc_se.c b/drivers/common/cnxk/roc_se.c index 2662297315.

[PATCH 02/15] common/cnxk: update SE context fields to match ucode spec

2023-09-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Update the fields in SE context and rename to keep it in sync with microcode spec. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_se.h | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/common/cnxk/roc_se.h b/drivers/

[PATCH 01/15] crypto/cnxk: clear rptr and dptr fields

2023-09-21 Thread Tejasree Kondoj
From: Anoob Joseph With SG version 2, hw requires valid rptr & dptr values. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 2 ++ drivers/crypto/cnxk/cnxk_se.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/crypto/cnxk/cn10k_cryptodev_ops.

[PATCH 00/15] fixes and improvements to cnxk crypto PMD

2023-09-21 Thread Tejasree Kondoj
: add support for raw APIs test/crypto: enable raw crypto tests for crypto_cn10k Gowrishankar Muthukrishnan (1): crypto/cnxk: fix private key length in ECDSA param Tejasree Kondoj (4): crypto/cnxk: fix IPsec CCM and GCM capabilities crypto/cnxk: remove pdcp chain bit from capabilities

[PATCH v3] app/test: add external mbuf IPsec tests

2023-09-20 Thread Tejasree Kondoj
Adding IPsec tests using external mbuf API. Signed-off-by: Tejasree Kondoj --- v3: - Rebased and fixed Intel compilation failure. v2: - Fixed compilation with ubuntu-20.04-gcc-static-i386. app/test/test_cryptodev.c| 191 ++- app/test

[PATCH v2] app/test: add external mbuf IPsec tests

2023-08-13 Thread Tejasree Kondoj
Adding IPsec tests using external mbuf API. Signed-off-by: Tejasree Kondoj --- v2: - Fixed compilation with ubuntu-20.04-gcc-static-i386. app/test/test_cryptodev.c| 191 ++- app/test/test_cryptodev_security_ipsec.h | 1 + 2 files changed, 189 insertions

[PATCH] app/test: add external mbuf IPsec tests

2023-08-11 Thread Tejasree Kondoj
Adding IPsec tests using external mbuf API. Signed-off-by: Tejasree Kondoj --- app/test/test_cryptodev.c| 191 ++- app/test/test_cryptodev_security_ipsec.h | 1 + 2 files changed, 189 insertions(+), 3 deletions(-) diff --git a/app/test/test_cryptodev.c b

[PATCH v3 8/8] crypto/cnxk: fix order of ECFPM parameters

2023-06-20 Thread Tejasree Kondoj
From: Gowrishankar Muthukrishnan Fix order of ECFPM parameters. Fixes: 76618fc4bef ("crypto/cnxk: fix order of ECFPM parameters") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/crypto/cnxk/cnxk_ae.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/cn

[PATCH v3 7/8] crypto/cnxk: add support for sm4

2023-06-20 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add support for SM4 cipher Support for modes: SM4_CBC, SM4_ECB, SM4_CTR, SM4_OFB, SM4_CFB Signed-off-by: Vidya Sagar Velumuri --- doc/guides/cryptodevs/cnxk.rst| 1 + doc/guides/cryptodevs/features/cn10k.ini | 5 + doc/guides/rel_notes/releas

[PATCH v3 6/8] test/crypto: enable raw crypto tests for crypto_cn10k

2023-06-20 Thread Tejasree Kondoj
From: Anoob Joseph Enable raw crypto tests with crypto_cn10k. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c | 8 1 file changed, 8 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index fb2af40b99..2ba37ed4bd 100644 --- a/app/test/test_cryp

[PATCH v3 5/8] crypto/cnxk: add support for raw APIs

2023-06-20 Thread Tejasree Kondoj
From: Anoob Joseph Add crypto RAW API support in cnxk PMD Enable the flag to allow execution of raw test suite. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Anoob Joseph --- doc/guides/cryptodevs/features/cn10k.ini | 1 + doc/guides/rel_notes/release_23_07.rst| 1 + drivers/cry

[PATCH v3 4/8] crypto/cnxk: enable context cache for 103XX

2023-06-20 Thread Tejasree Kondoj
Enabling context cache for SE instructions on 106B0 and 103XX. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 6 +++--- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 8 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/cnxk

[PATCH v3 3/8] crypto/cnxk: use pt inst for null cipher with null auth

2023-06-20 Thread Tejasree Kondoj
From: Aakash Sasidharan Use passthrough instruction for NULL cipher with NULL auth combination. Signed-off-by: Aakash Sasidharan --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 20 drivers/crypto/cnxk/cnxk_se.h| 59 2 files changed, 50 insertions(+)

[PATCH v3 2/8] crypto/cnxk: remove packet length checks in crypto offload

2023-06-20 Thread Tejasree Kondoj
From: Anoob Joseph When performing crypto offload, the packet length of the input/output buffer does not matter. The length that matters is the cipher/authentication range specified in crypto_op. Since application can request for ciphering of a small portion of the buffer, the extra comparison of

[PATCH v3 1/8] crypto/cnxk: check for null pointer

2023-06-20 Thread Tejasree Kondoj
Checking for NULL pointer dereference. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_se.h | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h index c66ab80749..a85e4c5170 100644 --- a

[PATCH v3 0/8] fixes and improvements to CNXK crypto PMD

2023-06-20 Thread Tejasree Kondoj
: remove packet length checks in crypto offload crypto/cnxk: add support for raw APIs test/crypto: enable raw crypto tests for crypto_cn10k Gowrishankar Muthukrishnan (1): crypto/cnxk: fix order of ECFPM parameters Tejasree Kondoj (2): crypto/cnxk: check for null pointer crypto/cnxk: enable

[PATCH v2 8/8] crypto/cnxk: fix order of ECFPM parameters

2023-06-19 Thread Tejasree Kondoj
From: Gowrishankar Muthukrishnan Fix order of ECFPM parameters. Fixes: 76618fc4bef ("crypto/cnxk: fix order of ECFPM parameters") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/crypto/cnxk/cnxk_ae.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/cn

[PATCH v2 7/8] crypto/cnxk: add support for sm4

2023-06-19 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add support for SM4 cipher Support for modes: SM4_CBC, SM4_ECB, SM4_CTR, SM4_OFB, SM4_CFB Signed-off-by: Vidya Sagar Velumuri --- doc/guides/cryptodevs/cnxk.rst| 1 + doc/guides/cryptodevs/features/cn10k.ini | 5 + doc/guides/rel_notes/releas

[PATCH v2 6/8] test/crypto: enable raw crypto tests for crypto_cn10k

2023-06-19 Thread Tejasree Kondoj
From: Anoob Joseph Enable raw crypto tests with crypto_cn10k. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c | 8 1 file changed, 8 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index fb2af40b99..2ba37ed4bd 100644 --- a/app/test/test_cryp

[PATCH v2 5/8] crypto/cnxk: add support for raw APIs

2023-06-19 Thread Tejasree Kondoj
From: Anoob Joseph Add crypto RAW API support in cnxk PMD Enable the flag to allow execution of raw test suite. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Anoob Joseph --- doc/guides/rel_notes/release_23_07.rst| 1 + drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 459 ++

[PATCH v2 4/8] crypto/cnxk: enable context cache for 103XX

2023-06-19 Thread Tejasree Kondoj
Enabling context cache for SE instructions on 106B0 and 103XX. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 6 +++--- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 8 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/cnxk

[PATCH v2 3/8] crypto/cnxk: use pt inst for null cipher with null auth

2023-06-19 Thread Tejasree Kondoj
From: Aakash Sasidharan Use passthrough instruction for NULL cipher with NULL auth combination. Signed-off-by: Aakash Sasidharan --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 20 drivers/crypto/cnxk/cnxk_se.h| 59 2 files changed, 50 insertions(+)

[PATCH v2 2/8] crypto/cnxk: remove packet length checks in crypto offload

2023-06-19 Thread Tejasree Kondoj
From: Anoob Joseph When performing crypto offload, the packet length of the input/output buffer does not matter. The length that matters is the cipher/authentication range specified in crypto_op. Since application can request for ciphering of a small portion of the buffer, the extra comparison of

[PATCH v2 0/8] fixes and improvements to CNXK crypto PMD

2023-06-19 Thread Tejasree Kondoj
offload crypto/cnxk: add support for raw APIs test/crypto: enable raw crypto tests for crypto_cn10k Gowrishankar Muthukrishnan (1): crypto/cnxk: fix order of ECFPM parameters Tejasree Kondoj (2): crypto/cnxk: check for null pointer crypto/cnxk: enable context cache for 103XX Vidya Sagar

[PATCH v2 1/8] crypto/cnxk: check for null pointer

2023-06-19 Thread Tejasree Kondoj
Checking for NULL pointer dereference. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_se.h | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h index c66ab80749..a85e4c5170 100644 --- a

[PATCH 8/8] crypto/cnxk: fix order of ECFPM parameters

2023-06-19 Thread Tejasree Kondoj
From: Gowrishankar Muthukrishnan Fix order of ECFPM parameters. Fixes: 76618fc4bef ("crypto/cnxk: fix order of ECFPM parameters") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/crypto/cnxk/cnxk_ae.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/cn

[PATCH 7/8] crypto/cnxk: add support for sm4

2023-06-19 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add support for SM4 cipher Support for modes: SM4_CBC, SM4_ECB, SM4_CTR, SM4_OFB, SM4_CFB Signed-off-by: Vidya Sagar Velumuri --- doc/guides/cryptodevs/cnxk.rst| 1 + doc/guides/cryptodevs/features/cn10k.ini | 1 + drivers/common/cnxk/hw/cpt.

[PATCH 6/8] test/crypto: enable raw crypto tests for crypto_cn10k

2023-06-19 Thread Tejasree Kondoj
From: Anoob Joseph Enable raw crypto tests with crypto_cn10k. Signed-off-by: Anoob Joseph --- app/test/test_cryptodev.c | 8 1 file changed, 8 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index fb2af40b99..2ba37ed4bd 100644 --- a/app/test/test_cryp

[PATCH 5/8] crypto/cnxk: add support for raw APIs

2023-06-19 Thread Tejasree Kondoj
From: Anoob Joseph Add crypto RAW API support in cnxk PMD Enable the flag to allow execution of raw test suite. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 459 ++ drivers/crypto/cnxk/cnxk_cryptodev.c

[PATCH 4/8] crypto/cnxk: enable context cache for 103XX

2023-06-19 Thread Tejasree Kondoj
Enabling context cache for SE instructions on 106B0 and 103XX. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 6 +++--- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 8 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/cnxk

[PATCH 3/8] crypto/cnxk: use pt inst for null cipher with null auth

2023-06-19 Thread Tejasree Kondoj
From: Aakash Sasidharan Use passthrough instruction for NULL cipher with NULL auth combination. Signed-off-by: Aakash Sasidharan --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 20 drivers/crypto/cnxk/cnxk_se.h| 59 2 files changed, 50 insertions(+)

[PATCH 2/8] crypto/cnxk: remove packet length checks in crypto offload

2023-06-19 Thread Tejasree Kondoj
From: Anoob Joseph When performing crypto offload, the packet length of the input/output buffer does not matter. The length that matters is the cipher/authentication range specified in crypto_op. Since application can request for ciphering of a small portion of the buffer, the extra comparison of

[PATCH 1/8] crypto/cnxk: check for null pointer

2023-06-19 Thread Tejasree Kondoj
Checking for NULL pointer dereference. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_se.h | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h index c66ab80749..a85e4c5170 100644 --- a

[PATCH 0/8] fixes and improvements to CNXK crypto PMD

2023-06-19 Thread Tejasree Kondoj
: enable raw crypto tests for crypto_cn10k Gowrishankar Muthukrishnan (1): crypto/cnxk: fix order of ECFPM parameters Tejasree Kondoj (2): crypto/cnxk: check for null pointer crypto/cnxk: enable context cache for 103XX Vidya Sagar Velumuri (1): crypto/cnxk: add support for sm4 app/test

[PATCH v2] test/crypto: fix IPsec AES CCM test vector

2023-05-24 Thread Tejasree Kondoj
Set IPsec AES-CCM test vector IV length to 11 instead of 12 as it includes only 3B salt and 8B per packet IV. Fixes: d314299950de ("test/crypto: add AES-CCM vectors") Cc: sta...@dpdk.org Signed-off-by: Tejasree Kondoj --- app/test/test_cryptodev_security_ipsec_test_vectors.h | 3 +

[PATCH] test/crypto: fix IPsec AES CCM test vector

2023-05-12 Thread Tejasree Kondoj
Fixing IPsec AES-CCM test vector IV length. Fixes: d314299950de ("test/crypto: add AES-CCM vectors") Cc: sta...@dpdk.org Signed-off-by: Tejasree Kondoj --- app/test/test_cryptodev_security_ipsec_test_vectors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/2] crypto/cnxk: fix IPsec CCM capabilities

2023-05-12 Thread Tejasree Kondoj
Fixing lookaside IPsec AES-CCM capabilities. Fixes: 246dea7e6efb ("crypto/cnxk: support AES-CCM") Cc: sta...@dpdk.org Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/c

[PATCH 1/2] crypto/cnxk: add AES CCM support

2023-05-12 Thread Tejasree Kondoj
Adding AES CCM support to lookaside crypto PMD. Signed-off-by: Tejasree Kondoj --- doc/guides/cryptodevs/cnxk.rst| 1 + doc/guides/cryptodevs/features/cn10k.ini | 3 ++ doc/guides/cryptodevs/features/cn9k.ini | 3 ++ drivers/common/cnxk/roc_se.c

[PATCH 0/2] AES CCM support in CNXK crypto PMD

2023-05-12 Thread Tejasree Kondoj
This series adds AES CCM support to CNXK crypto PMD and fixes capabilities in lookaside IPsec mode. Tejasree Kondoj (2): crypto/cnxk: add AES CCM support crypto/cnxk: fix IPsec CCM capabilities doc/guides/cryptodevs/cnxk.rst| 1 + doc/guides/cryptodevs/features/cn10k.ini

[PATCH] test/crypto: fix return value from session

2023-05-05 Thread Tejasree Kondoj
Fixing return value if session failure occurs due to unsupported feature. Fixes: eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto operations") Cc: sta...@dpdk.org Signed-off-by: Tejasree Kondoj --- app/test/test_cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[PATCH 7/7] crypto/cnxk: remove redundant assignment

2023-04-28 Thread Tejasree Kondoj
From: Anoob Joseph In SG_VER2, DPTR would be poining at gather_comp. No need to set it m_vaddr only to be overwritten. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cnxk_se.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se

[PATCH 6/7] crypto/cnxk: increase max segments

2023-04-28 Thread Tejasree Kondoj
From: Anoob Joseph Increase max segments to allow max values supported by hardware/microcode. For SG_VER2, max number of descriptors supported would be 45. For SG_VER1, maximum number of total components would be 100. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/roc_cpt_sg.h | 4 +- dr

[PATCH 5/7] crypto/cnxk: set local variables to template value

2023-04-28 Thread Tejasree Kondoj
Initializing local variable from the template populated in control path. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_se.h | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h

[PATCH 4/7] crypto/cnxk: support SM3 hash

2023-04-28 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add support for SM3 hash operations Signed-off-by: Vidya Sagar Velumuri --- doc/guides/cryptodevs/cnxk.rst| 1 + doc/guides/cryptodevs/features/cn10k.ini | 1 + drivers/common/cnxk/roc_se.h | 1 + drivers/crypto/cnxk/cnxk_cryp

[PATCH 3/7] crypto/cnxk: add CN10K pdcp chain support

2023-04-28 Thread Tejasree Kondoj
Adding CN10K pdcp chain support. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/roc_se.c | 49 ++-- drivers/common/cnxk/roc_se.h | 7 +- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 2 +- drivers/crypto/cnxk/cnxk_se.h| 332

[PATCH 2/7] crypto/cnxk: add cryptodev reconfiguration support

2023-04-28 Thread Tejasree Kondoj
From: Aakash Sasidharan Add support for reconfiguration of cryptodev on cnxk platforms. Signed-off-by: Aakash Sasidharan --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 46 +++- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_cryptode

[PATCH 0/7] fixes and improvements to CNXK crypto PMD

2023-04-28 Thread Tejasree Kondoj
This series adds SM3, CN10K PDCP CHAIN support and improvements to CNXK crypto PMD. Aakash Sasidharan (1): crypto/cnxk: add cryptodev reconfiguration support Anoob Joseph (2): crypto/cnxk: increase max segments crypto/cnxk: remove redundant assignment Tejasree Kondoj (3): crypto/cnxk

[PATCH 1/7] crypto/cnxk: return error for unsupported paths

2023-04-28 Thread Tejasree Kondoj
Returning error in control path for unsupported algorithm combinations. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/roc_se.c | 12 +--- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 5 + 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH] examples/ipsec-secgw: fix AES-CTR IV length

2023-04-13 Thread Tejasree Kondoj
to 16") Signed-off-by: Tejasree Kondoj --- examples/ipsec-secgw/sa.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 5f5d2685f6..63eadb3393 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-

[PATCH] app/crypto-perf: change buffer size based on optype

2023-04-06 Thread Tejasree Kondoj
Adding digest size to buffer size in auth-then-cipher mode with auth_op set to generate as cipher length includes digest size also. Signed-off-by: Tejasree Kondoj --- app/test-crypto-perf/cperf_options_parsing.c | 8 1 file changed, 8 insertions(+) diff --git a/app/test-crypto-perf

RE: [EXT] [PATCH v2 0/5] test/crypto: add ZUC256 chained tests

2023-03-03 Thread Tejasree Kondoj
Acked-by: Tejasree Kondoj > -Original Message- > From: Ciara Power > Sent: Friday, March 3, 2023 3:08 PM > Cc: dev@dpdk.org; kai...@intel.com; pablo.de.lara.gua...@intel.com; Ciara > Power > Subject: [EXT] [PATCH v2 0/5] test/crypto: add ZUC256 chained tests &

RE: [PATCH v2 05/11] crypto/cnxk: set ctx for AE

2023-02-27 Thread Tejasree Kondoj
Hi Akhil, Patch sets ctx_val to 1 for asymmetric due to cn10k A0 hardware errata and structures are redesigned to satisfy hardware alignment requirements. Thanks Tejasree > -Original Message- > From: Akhil Goyal > Sent: Monday, February 27, 2023 11:09 PM > To: Tejasree

[PATCH v2 11/11] crypto/cnxk: add model check for pdcp chain

2023-02-24 Thread Tejasree Kondoj
Adding cn9k model check for pdcp_chain as it is not supported in cn10k. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_ops.c b/drivers/crypto/cnxk

[PATCH v2 10/11] crypto/cnxk: fix order of ECFPM params

2023-02-24 Thread Tejasree Kondoj
From: Gowrishankar Muthukrishnan Fix the order of ECFPM parameters according to target board. Fixes: 8e39b133235 ("crypto/cnxk: support fixed point multiplication") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/crypto/cnxk/cnxk_ae.h | 48 --- 1 file cha

[PATCH v2 09/11] crypto/cnxk: support cn10k IPsec SG mode

2023-02-24 Thread Tejasree Kondoj
Adding support for scatter-gather mode in 103XX and 106XX lookaside IPsec. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 21 +- drivers/crypto/cnxk/cn10k_ipsec_la_ops.h | 222 -- drivers/crypto/cnxk/cnxk_sg.h | 23 +++ 3 files

  1   2   3   4   >