[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

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 02/13] common/cnxk: set inplace bit of lookaside IPsec

2022-10-19 Thread Tejasree Kondoj
Set inplace bit of lookaside IPsec and remove rptr population in datapath. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/roc_ie_on.h | 1 + drivers/common/cnxk/roc_ie_ot.h | 2 ++ drivers/crypto/cnxk/cn10k_ipsec.c| 4 ++-- drivers/crypto/cnxk

[PATCH 01/13] crypto/cnxk: fix length of AES-CMAC algo

2022-10-19 Thread Tejasree Kondoj
AES-CMAC uses PDCP opcode. Length should be passed in bits. Fixes: 759b5e653580 ("crypto/cnxk: support AES-CMAC") Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_se.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/c

[PATCH 03/13] crypto/cnxk: change capabilities as per firmware

2022-10-19 Thread Tejasree Kondoj
Changing CPT engine capabilities structure as per microcode. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/roc_mbox.h | 5 - drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/common/cnxk/roc_mbox.h b

[PATCH 04/13] common/cnxk: support 103XX CPT

2022-10-19 Thread Tejasree Kondoj
Adding support for 103XX CPT. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/hw/cpt.h | 26 +- drivers/common/cnxk/roc_se.h | 11 + drivers/crypto/cnxk/cn10k_cryptodev.c |2 +- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 67 +- drivers/crypto/cnxk

[PATCH 05/13] common/cnxk: support custom UDP port values

2022-10-19 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add support for custom port values for UDP encapsulation Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/cnxk_security.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/drivers/common/cnxk/cnxk_security.c b

[PATCH 06/13] crypto/cnxk: update rlen calculation for lookaside mode

2022-10-19 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri For transport mode, IP header will not be part of encryption. Update the response len calculation accordingly for transport mode Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn9k_ipsec.c| 42 - drivers/crypto/cnxk/cn9k_i

[PATCH 07/13] crypto/cnxk: add support for DES and MD5

2022-10-19 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add supoort for cipher DES and auth MD5 for IPsec offload Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cnxk_cryptodev.h | 2 +- .../crypto/cnxk/cnxk_cryptodev_capabilities.c | 42 ++- drivers/crypto/cnxk/cnxk_ipsec.h

[PATCH 0/6] update autotest with new algorithms

2022-10-19 Thread Tejasree Kondoj
This series updates autotest with DES, 3DES, MD5 and custom UDP ports support. Tejasree Kondoj (2): test/crypto: check antireply capability only for ingress test/crypto: add unit test for custom UDP ports Vidya Sagar Velumuri (4): test/security: add unit tests for DES and 3DES test

[PATCH 1/6] test/security: add unit tests for DES and 3DES

2022-10-19 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test cases and test vecotrs for DES-CBC and 3DES-CBC. Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev_security_ipsec.h | 12 + ...st_cryptodev_security_ipsec_test_vectors.h | 876 ++ app/test/test_security_inline_proto.c

[PATCH 2/6] test/security: add unit tests for auth algo MD5

2022-10-19 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test cases for MD5 auth algo. Add the test vectors for MD5 auth algo. Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev_security_ipsec.h | 6 + ...st_cryptodev_security_ipsec_test_vectors.h | 107 ++ app/test/test_securit

[PATCH 3/6] test/security: update antireplay unit test for event mode

2022-10-19 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri With event mode is enabled, send and receive packets via event dev Signed-off-by: Vidya Sagar Velumuri --- app/test/test_security_inline_proto.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/app/test/test_security_inline_pr

[PATCH 4/6] test/crypto: check antireply capability only for ingress

2022-10-19 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Antireplay is supported only for ingress. Check this capability only for ingress. Signed-off-by: Tejasree Kondoj Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev_security_ipsec.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions

[PATCH 5/6] test/crypto: add unit tests for DES and MD5

2022-10-19 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test cases for auth algo MD5. Add unit test cases for cipher DES-CBC. Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev.c| 50 app/test/test_cryptodev_security_ipsec.h | 2 +- 2 files changed, 51 insert

[PATCH 6/6] test/crypto: add unit test for custom UDP ports

2022-10-19 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test for custom UDP ports with UDP encapsulation. Verify UDP header in egress path for all unit tests. Signed-off-by: Tejasree Kondoj Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev.c| 21 +++ app/test

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

2022-10-20 Thread Tejasree Kondoj
This series adds improvements and support for 103XX CPT, PDCP AAD, DES and MD5 algorithms in cnxk crypto PMD. Anoob Joseph (3): crypto/cnxk: switch to SG when metabuf is allocated crypto/cnxk: verify IV length during session create crypto/cnxk: remove dead code Tejasree Kondoj (5

[PATCH 08/13] common/cnxk: add opad ipad gen for md5

2022-10-20 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add support to generate ipad and opad for md5. Skip the call to additional command WRITE_SA during SA creation. Instead use the software defined function to generate opad and ipad. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/cnxk_security.c | 49

[PATCH 10/13] crypto/cnxk: acquire lock while updating antireplay

2022-10-20 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Acquire locks in antireplay logic to avoid race condition Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/cnxk/cn9k_cryptodev_ops.c b/drivers/crypto/cnxk/cn9k_crypt

[PATCH 09/13] crypto/cnxk: support PDCP AAD in CPT PMD

2022-10-20 Thread Tejasree Kondoj
Adding support for PDCP AAD in 96xx crypto pmd. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 10 +-- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 4 +- drivers/crypto/cnxk/cnxk_se.h| 86 +++- 3 files changed, 48 insertions(+), 52

[PATCH 11/13] crypto/cnxk: switch to SG when metabuf is allocated

2022-10-20 Thread Tejasree Kondoj
From: Anoob Joseph Metabuf would be allocated only when SG is required. Check the pointer instead of flags. Coverity issue: 381018 Fixes: d3bff77cc371 ("crypto/cnxk: separate out PDCP chain datapath") Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cnxk_se.h | 33 ++---

[PATCH 12/13] crypto/cnxk: verify IV length during session create

2022-10-20 Thread Tejasree Kondoj
From: Anoob Joseph For Kasumi cipher operation, IV is a must. Verify the arg provided in session creation and remove datapath check. Coverity issue: 381020 381019 Fixes: 7a59ccc1b502 ("crypto/cnxk: remove extra indirection for FC and Kasumi") Signed-off-by: Anoob Joseph --- drivers/crypto/cnx

[PATCH 13/13] crypto/cnxk: remove dead code

2022-10-20 Thread Tejasree Kondoj
From: Anoob Joseph Coverity issue: 381022 Fixes: d94414d1627f ("crypto/cnxk: separate out PDCP cipher datapath") Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cnxk_se.h | 38 ++- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/drivers/crypt

[PATCH v2 0/6] update autotest with new algorithms

2022-10-21 Thread Tejasree Kondoj
This series updates autotest with DES, 3DES, MD5 and custom UDP ports support. v2: * Squashed a change in 5th patch with 2nd one. Tejasree Kondoj (2): test/crypto: check antireply capability only for ingress test/crypto: add unit test for custom UDP ports Vidya Sagar Velumuri (4): test

[PATCH v2 2/6] test/security: add unit tests for auth algo MD5

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test cases for MD5 auth algo. Add the test vectors for MD5 auth algo. Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev_security_ipsec.h | 6 + ...st_cryptodev_security_ipsec_test_vectors.h | 107 ++ app/test/test_securit

[PATCH v2 1/6] test/security: add unit tests for DES and 3DES

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test cases and test vectors for DES-CBC and 3DES-CBC. Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev_security_ipsec.h | 12 + ...st_cryptodev_security_ipsec_test_vectors.h | 876 ++ app/test/test_security_inline_proto.c

[PATCH v2 4/6] test/crypto: check antireply capability only for ingress

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Antireplay is supported only for ingress. Check this capability only for ingress. Signed-off-by: Tejasree Kondoj Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev_security_ipsec.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions

[PATCH v2 3/6] test/security: update antireplay unit test for event mode

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri With event mode is enabled, send and receive packets via event dev Signed-off-by: Vidya Sagar Velumuri --- app/test/test_security_inline_proto.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/app/test/test_security_inline_pr

[PATCH v2 5/6] test/crypto: add unit tests for DES and MD5

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test cases for auth algo MD5. Add unit test cases for cipher DES-CBC. Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev.c | 50 +++ 1 file changed, 50 insertions(+) diff --git a/app/test/test_cryptodev.c b/a

[PATCH v2 6/6] test/crypto: add unit test for custom UDP ports

2022-10-21 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Add unit test for custom UDP ports with UDP encapsulation. Verify UDP header in egress path for all unit tests. Signed-off-by: Tejasree Kondoj Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev.c| 21 +++ app/test

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

[dpdk-dev] [PATCH v4 0/3] add lookaside IPsec UDP encapsulation and transport mode

2021-04-14 Thread Tejasree Kondoj
IPv6 packets * Fixed if condition v2: * Supported per SA UDP encapsulation in ipsec-secgw * Added new packet type for UDP-ESP packets in mbuf Tejasree Kondoj (3): crypto/octeontx2: add UDP encapsulation support examples/ipsec-secgw: add UDP encapsulation support crypto/octeontx2: support

[dpdk-dev] [PATCH v4 1/3] crypto/octeontx2: add UDP encapsulation support

2021-04-14 Thread Tejasree Kondoj
Adding UDP encapsulation support for IPsec in lookaside protocol mode. Signed-off-by: Tejasree Kondoj Acked-by: Akhil Goyal --- doc/guides/cryptodevs/octeontx2.rst | 1 + doc/guides/rel_notes/release_21_05.rst| 2 + drivers/crypto/octeontx2/otx2_cryptodev_sec.c | 59

[dpdk-dev] [PATCH v4 2/3] examples/ipsec-secgw: add UDP encapsulation support

2021-04-14 Thread Tejasree Kondoj
Adding lookaside IPsec UDP encapsulation support for NAT traversal. Application has to add udp-encap option to sa config file to enable UDP encapsulation on the SA. Signed-off-by: Tejasree Kondoj Acked-by: Akhil Goyal --- doc/guides/rel_notes/release_21_05.rst | 5 +++ doc/guides

[dpdk-dev] [PATCH v4 3/3] crypto/octeontx2: support lookaside IPv4 transport mode

2021-04-14 Thread Tejasree Kondoj
Adding support for IPv4 lookaside IPsec transport mode. Signed-off-by: Tejasree Kondoj Acked-by: Akhil Goyal --- doc/guides/cryptodevs/octeontx2.rst | 1 + doc/guides/rel_notes/release_21_05.rst| 2 + drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 7 +- drivers/crypto

[dpdk-dev] [RFC] security: add option to configure tunnel header verification

2021-07-05 Thread Tejasree Kondoj
-off-by: Tejasree Kondoj --- lib/security/rte_security.h | 17 + 1 file changed, 17 insertions(+) diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h index 88d31de0a6..c67de78baf 100644 --- a/lib/security/rte_security.h +++ b/lib/security/rte_security.h @@ -55,6

[dpdk-dev] [PATCH] doc: announce IPsec SA config option struct changes

2021-07-05 Thread Tejasree Kondoj
://mails.dpdk.org/archives/dev/2021-July/213484.html Signed-off-by: Tejasree Kondoj --- doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 9584d6bfd7..331b9d424a 100644

[PATCH 0/4] support stream cipher chained operations

2022-06-17 Thread Tejasree Kondoj
This series adds support for zuc, snow3g and aes-ctr-cmac chained operations in cn9k PMD and autotest application. Tejasree Kondoj (4): crypto/cnxk: fix CMAC IV crypto/cnxk: support stream cipher chained operations crypto/cnxk: support scatter gather mode app/test: add additional stream

[PATCH 1/4] crypto/cnxk: fix CMAC IV

2022-06-17 Thread Tejasree Kondoj
Fixing CMAC IV length to 16 bytes. Fixes: 759b5e653580 ("crypto/cnxk: support AES-CMAC") Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_se.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_

[PATCH 2/4] crypto/cnxk: support stream cipher chained operations

2022-06-17 Thread Tejasree Kondoj
Adding support for zuc, snow3g and aes-ctr-cmac chained operations on cn9k using key and IV scheme in microcode. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/roc_se.c | 271 +-- drivers/common/cnxk/roc_se.h | 74 +-- drivers/crypto/cnxk

[PATCH 3/4] crypto/cnxk: support scatter gather mode

2022-06-17 Thread Tejasree Kondoj
Adding scatter gather support for zuc, snow3g and aes-ctr-cmac chained operations on cn9k. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_se.h | 149 +- 1 file changed, 128 insertions(+), 21 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b

[PATCH 4/4] app/test: add additional stream cipher tests

2022-06-17 Thread Tejasree Kondoj
Adding zuc, snow3g and aes-ctr-cmac auth-cipher test vectors with same auth and cipher offsets and total digest data encrypted. Also skipping other tests with different cipher and auth offsets and partial or no digest encrypted ones on cn9k platform. Signed-off-by: Tejasree Kondoj --- app/test

[PATCH 0/3] support new full context firmware

2022-06-20 Thread Tejasree Kondoj
This series adds support for new full context microcode in cn9k IPsec PMD. Anoob Joseph (1): crypto/cnxk: improvements to fastpath handling Tejasree Kondoj (1): crypto/cnxk: add anti-replay as per new firmware Vidya Sagar Velumuri (1): crypto/cnxk: move IPsec SA creation to common

[PATCH 1/3] crypto/cnxk: move IPsec SA creation to common

2022-06-20 Thread Tejasree Kondoj
From: Vidya Sagar Velumuri Move the IPsec SA creation to common. The code can be used by fastpath also to create the SAs Add changes to support new full context microcode Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Archana Muniganti --- drivers/common/cnxk/cnxk_security.c | 398 ++

[PATCH 2/3] crypto/cnxk: improvements to fastpath handling

2022-06-20 Thread Tejasree Kondoj
From: Anoob Joseph Remove SA & packet accesses in dequeue path by adjusting the headers in the enqueue path for outbound packets. For inbound packets, add extra esn_en flag in the SA to minimize cache line accesses in the datapath. Also, use seq_lo for IPID. IPID just need to be unique. Instead

[PATCH 3/3] crypto/cnxk: add anti-replay as per new firmware

2022-06-20 Thread Tejasree Kondoj
Adding anti-replay changes as per new FP-FC microcode. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/roc_ie_on.h | 5 +- drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 63 + drivers/crypto/cnxk/cn9k_ipsec.c | 3 + drivers/crypto/cnxk

[PATCH v2 0/3] support stream cipher chained operations

2022-06-20 Thread Tejasree Kondoj
This series adds support for zuc, snow3g and aes-ctr-cmac chained operations in cn9k PMD. v2: * Split autotest patch into separate series Tejasree Kondoj (3): crypto/cnxk: fix CMAC IV crypto/cnxk: support stream cipher chained operations crypto/cnxk: support scatter gather mode drivers

[PATCH v2 1/3] crypto/cnxk: fix CMAC IV

2022-06-20 Thread Tejasree Kondoj
Fixing CMAC IV length to 16 bytes. Fixes: 759b5e653580 ("crypto/cnxk: support AES-CMAC") Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_se.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_

[PATCH v2 2/3] crypto/cnxk: support stream cipher chained operations

2022-06-20 Thread Tejasree Kondoj
Adding support for zuc, snow3g and aes-ctr-cmac chained operations on cn9k using key and IV scheme in microcode. Signed-off-by: Tejasree Kondoj --- drivers/common/cnxk/roc_se.c | 271 +-- drivers/common/cnxk/roc_se.h | 74 +-- drivers/crypto/cnxk

[PATCH v2 3/3] crypto/cnxk: support scatter gather mode

2022-06-20 Thread Tejasree Kondoj
Adding scatter gather support for zuc, snow3g and aes-ctr-cmac chained operations on cn9k. Signed-off-by: Tejasree Kondoj --- drivers/crypto/cnxk/cnxk_se.h | 149 +- 1 file changed, 128 insertions(+), 21 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b

[PATCH v2] app/test: add additional stream cipher tests

2022-06-20 Thread Tejasree Kondoj
Adding zuc, snow3g and aes-ctr-cmac auth-cipher test vectors with same auth and cipher offsets and total digest data encrypted. Existing tests have different cipher and auth offsets and partial or no digest encrypted. Signed-off-by: Tejasree Kondoj --- v2: * Removed cn9k PMD checks app/test

RE: [PATCH v2] app/test: add additional stream cipher tests

2022-06-22 Thread Tejasree Kondoj
Hi Ciara, Thanks for pointing it out. Will rework test vectors and submit new version. Thanks Tejasree > -Original Message- > From: Power, Ciara > Sent: Tuesday, June 21, 2022 7:58 PM > To: Akhil Goyal ; Tejasree Kondoj > ; Zhang, Roy Fan > Cc: Anoob Joseph ; Ank

[PATCH v3] app/test: add additional stream cipher tests

2022-06-23 Thread Tejasree Kondoj
Adding zuc, snow3g and aes-ctr-cmac auth-cipher test vectors with same auth and cipher offsets and total digest data encrypted. Existing tests have different cipher and auth offsets and partial or no digest encrypted. Signed-off-by: Tejasree Kondoj --- v3: * Modified IV of test vectors as per

[PATCH v4] app/test: add additional stream cipher tests

2022-06-23 Thread Tejasree Kondoj
Adding zuc, snow3g and aes-ctr-cmac auth-cipher test vectors with same auth and cipher offsets and total digest data encrypted. Existing tests have different cipher and auth offsets and partial or no digest encrypted. Signed-off-by: Tejasree Kondoj --- v4: * Set last 3 bytes of IV to zero in

RE: [EXT] [PATCH 1/2] test/crypto: fix zuc test vector IV format

2022-06-26 Thread Tejasree Kondoj
Acked-by: Tejasree Kondoj > -Original Message- > From: Ciara Power > Sent: Thursday, June 23, 2022 8:13 PM > To: Akhil Goyal ; Fan Zhang > > Cc: dev@dpdk.org; kai...@intel.com; pablo.de.lara.gua...@intel.com; > Tejasree Kondoj ; Ciara Power > ; arkadiusz

RE: [EXT] [PATCH 2/2] test/crypto: fix snow3g test vector IV format

2022-06-26 Thread Tejasree Kondoj
Acked-by: Tejasree Kondoj > -Original Message- > From: Ciara Power > Sent: Thursday, June 23, 2022 8:13 PM > To: Akhil Goyal ; Fan Zhang > > Cc: dev@dpdk.org; kai...@intel.com; pablo.de.lara.gua...@intel.com; > Tejasree Kondoj ; Ciara Power > ; deepak.k.j...@int

[dpdk-dev] [PATCH v2 0/4] add lookaside IPsec UDP encapsulation and transport mode

2021-04-01 Thread Tejasree Kondoj
Tejasree Kondoj (4): crypto/octeontx2: add UDP encapsulation support mbuf: add packet type for UDP-ESP tunnel packets examples/ipsec-secgw: add UDP encapsulation support crypto/octeontx2: support lookaside IPv4 transport mode doc/guides/cryptodevs/octeontx2.rst | 2 + doc/guides

[dpdk-dev] [PATCH v2 1/4] crypto/octeontx2: add UDP encapsulation support

2021-04-01 Thread Tejasree Kondoj
Adding UDP encapsulation support for IPsec in lookaside protocol mode. Signed-off-by: Tejasree Kondoj --- doc/guides/cryptodevs/octeontx2.rst | 1 + doc/guides/rel_notes/release_21_05.rst| 5 +++ drivers/crypto/octeontx2/otx2_cryptodev_sec.c | 40 ++- 3 files

[dpdk-dev] [PATCH v2 2/4] mbuf: add packet type for UDP-ESP tunnel packets

2021-04-01 Thread Tejasree Kondoj
Adding new mbuf packet type for UDP encapsulated ESP packets. Signed-off-by: Tejasree Kondoj --- doc/guides/rel_notes/release_21_05.rst | 5 + lib/librte_mbuf/rte_mbuf_ptype.h | 21 + 2 files changed, 26 insertions(+) diff --git a/doc/guides/rel_notes

[dpdk-dev] [PATCH v2 3/4] examples/ipsec-secgw: add UDP encapsulation support

2021-04-01 Thread Tejasree Kondoj
Adding lookaside IPsec UDP encapsulation support for NAT traversal. Application has to add udp-encap option to sa config file to enable UDP encapsulation on the SA. Signed-off-by: Tejasree Kondoj --- doc/guides/rel_notes/release_21_05.rst | 5 doc/guides/sample_app_ug/ipsec_secgw.rst

[dpdk-dev] [PATCH v2 4/4] crypto/octeontx2: support lookaside IPv4 transport mode

2021-04-01 Thread Tejasree Kondoj
Adding support for IPv4 lookaside IPsec transport mode. Signed-off-by: Tejasree Kondoj --- doc/guides/cryptodevs/octeontx2.rst | 1 + doc/guides/rel_notes/release_21_05.rst| 2 + drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 7 +- drivers/crypto/octeontx2

[dpdk-dev] [PATCH v3 2/4] mbuf: add packet type for UDP-ESP tunnel packets

2021-04-08 Thread Tejasree Kondoj
Adding new mbuf packet type for UDP encapsulated ESP packets. Signed-off-by: Tejasree Kondoj --- doc/guides/rel_notes/release_21_05.rst | 5 + lib/librte_mbuf/rte_mbuf_ptype.h | 21 + 2 files changed, 26 insertions(+) diff --git a/doc/guides/rel_notes

[dpdk-dev] [PATCH v3 4/4] crypto/octeontx2: support lookaside IPv4 transport mode

2021-04-08 Thread Tejasree Kondoj
Adding support for IPv4 lookaside IPsec transport mode. Signed-off-by: Tejasree Kondoj --- doc/guides/cryptodevs/octeontx2.rst | 1 + doc/guides/rel_notes/release_21_05.rst| 2 + drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 7 +- drivers/crypto/octeontx2

[dpdk-dev] [PATCH v3 0/4] add lookaside IPsec UDP encapsulation and transport mode

2021-04-08 Thread Tejasree Kondoj
encapsulation in ipsec-secgw * Added new packet type for UDP-ESP packets in mbuf Tejasree Kondoj (4): crypto/octeontx2: add UDP encapsulation support mbuf: add packet type for UDP-ESP tunnel packets examples/ipsec-secgw: add UDP encapsulation support crypto/octeontx2: support lookaside IPv4 transport

[dpdk-dev] [PATCH v3 3/4] examples/ipsec-secgw: add UDP encapsulation support

2021-04-08 Thread Tejasree Kondoj
Adding lookaside IPsec UDP encapsulation support for NAT traversal. Application has to add udp-encap option to sa config file to enable UDP encapsulation on the SA. Signed-off-by: Tejasree Kondoj --- doc/guides/rel_notes/release_21_05.rst | 5 +++ doc/guides/sample_app_ug/ipsec_secgw.rst

[dpdk-dev] [PATCH v3 1/4] crypto/octeontx2: add UDP encapsulation support

2021-04-08 Thread Tejasree Kondoj
Adding UDP encapsulation support for IPsec in lookaside protocol mode. Signed-off-by: Tejasree Kondoj --- doc/guides/cryptodevs/octeontx2.rst | 1 + doc/guides/rel_notes/release_21_05.rst| 2 + drivers/crypto/octeontx2/otx2_cryptodev_sec.c | 59 --- 3 files

Re: [dpdk-dev] [PATCH v2 3/4] examples/ipsec-secgw: add UDP encapsulation support

2021-04-08 Thread Tejasree Kondoj
Hi Konstantin, Please see inline. Thanks Tejasree > -Original Message- > From: Ananyev, Konstantin > Sent: Tuesday, April 6, 2021 7:08 PM > To: Tejasree Kondoj ; Akhil Goyal > ; Nicolau, Radu > Cc: Anoob Joseph ; Ankur Dwivedi > ; Jerin Jacob Kollanukkaran ; >

Re: [dpdk-dev] [PATCH v3 2/4] mbuf: add packet type for UDP-ESP tunnel packets

2021-04-08 Thread Tejasree Kondoj
Hi Olivier, Andrew Could you please review the patch? Thanks Tejasree > -Original Message- > From: Tejasree Kondoj > Sent: Thursday, April 8, 2021 1:47 PM > To: Akhil Goyal ; Radu Nicolau > ; Konstantin Ananyev > > Cc: Tejasree Kondoj ; Anoob Joseph > ; Ankur

  1   2   3   4   5   6   >