[PATCH v4 2/2] test/dma: add functions to verify zero and one fill

2025-06-08 Thread Vidya Sagar Velumuri
Add test cases to verify zero fill and one fill Signed-off-by: Vidya Sagar Velumuri Acked-by: Amit Prakash Shukla diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index 88c3d02fd6..0c67aaceb2 100644 --- a/app/test/test_dmadev.c +++ b/app/test/test_dmadev.c @@ -872,42 +872,51

[PATCH v4 1/2] test/dma: update the sg test to verify wrap around case

2025-06-08 Thread Vidya Sagar Velumuri
Run the sg test in a loop to verify wrap around case. Total number commands submitted to be more than the number descriptors allocated to verify the scenario. Signed-off-by: Vidya Sagar Velumuri Acked-by: Amit Prakash Shukla diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index

[PATCH v3 1/2] test/dma: update the sg test to verify wrap around case

2025-06-06 Thread Vidya Sagar Velumuri
Run the sg test in a loop to verify wrap around case. Total number commands submitted to be more than the number descriptors allocated to verify the scenario. Signed-off-by: Vidya Sagar Velumuri Acked-by: Amit Prakash Shukla diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index

[PATCH v3 2/2] test/dma: add functions to verify zero and one fill

2025-06-06 Thread Vidya Sagar Velumuri
Add test cases to verify zero fill and one fill Signed-off-by: Vidya Sagar Velumuri Acked-by: Amit Prakash Shukla diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index 88c3d02fd6..82f8e82783 100644 --- a/app/test/test_dmadev.c +++ b/app/test/test_dmadev.c @@ -872,42 +872,52

[PATCH v1 3/3] test/crypto: add support for error recovery

2024-08-22 Thread Vidya Sagar Velumuri
verifies the cryptodev recovery by testing a simple crypto operation. Signed-off-by: Vidya Sagar Velumuri diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index c846b26ed1..bfbdb8b10a 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -71,6 +71,9

[PATCH v1 2/3] crypto/cnxk: add queue pair reset support

2024-08-22 Thread Vidya Sagar Velumuri
Add support for reset of a specific queue pair on cnxk platform. Signed-off-by: Vidya Sagar Velumuri diff --git a/drivers/common/cnxk/roc_cpt.c b/drivers/common/cnxk/roc_cpt.c index aba2a49d19..3855d5e7a5 100644 --- a/drivers/common/cnxk/roc_cpt.c +++ b/drivers/common/cnxk/roc_cpt.c @@ -953,6

[PATCH v1 1/3] cryptodev: add queue pair reset API

2024-08-22 Thread Vidya Sagar Velumuri
before calling this API. Signed-off-by: Vidya Sagar Velumuri diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h index 6c114f7181..311ae63abb 100644 --- a/lib/cryptodev/cryptodev_pmd.h +++ b/lib/cryptodev/cryptodev_pmd.h @@ -290,6 +290,22 @@ typedef int

[PATCH v1] examples/ipsec-secgw: free the actual mbuf pointer

2024-08-16 Thread Vidya Sagar Velumuri
In case of crypto event vector, the vector points to crypto op structure in priv area and not actual mbuf. Extract the mbuf pointer and pass these to rte_mbuf_free to free the mbufs. Signed-off-by: Vidya Sagar Velumuri diff --git a/examples/ipsec-secgw/ipsec_worker.c b/examples/ipsec-secgw

[PATCH v2 2/2] test/dma: add functions to verify zero and one fill

2024-04-19 Thread Vidya Sagar Velumuri
Add test cases to verify zero fill and one fill Signed-off-by: Vidya Sagar Velumuri diff --git a/app/test/test.h b/app/test/test.h index 15e23d297f..0ca6519f6e 100644 --- a/app/test/test.h +++ b/app/test/test.h @@ -27,6 +27,10 @@ #include +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(x) (sizeof

[PATCH v2 1/2] test/dma: update the sg test to verify wrap around case

2024-04-19 Thread Vidya Sagar Velumuri
Run the sg test in a loop to verify wrap around case. Total number commands submitted to be more than the number descriptors allocated to verify the scenario. Signed-off-by: Vidya Sagar Velumuri diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index 143e1bcd68..7462e90831 100644

[PATCH v1 2/2] test/dma: add functions to verify zero and one fill

2024-04-16 Thread Vidya Sagar Velumuri
Add test cases to verify zero fill and one fill Signed-off-by: Vidya Sagar Velumuri diff --git a/app/test/test.h b/app/test/test.h index 15e23d297f..0ca6519f6e 100644 --- a/app/test/test.h +++ b/app/test/test.h @@ -27,6 +27,10 @@ #include +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(x) (sizeof

[PATCH v1 1/2] test/dma: update the sg test to verify wrap around case

2024-04-16 Thread Vidya Sagar Velumuri
Run the sg test in a loop to verify wrap around case. Total number commands submitted to be more than the number descriptors allocated to verify the scenario. Signed-off-by: Vidya Sagar Velumuri diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index 143e1bcd68..7462e90831 100644

[PATCH v4 8/8] crypto/cnxk: update the context structure of tls

2024-03-14 Thread Vidya Sagar Velumuri
Keep the record context for TLS-1.3 in sync with microcode structure. Report error if optional padding is enabled for AEAD case in both TLS-1.2 and DTLS-1.2. Use the proper offset for calculating the context size in case of TLS-1.3. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk

[PATCH v4 7/8] crypto/cnxk: add support for oop processing in TLS

2024-03-14 Thread Vidya Sagar Velumuri
From: Aakash Sasidharan Add support for out-of-place processing in TLS. Signed-off-by: Aakash Sasidharan --- drivers/crypto/cnxk/cn10k_tls_ops.h | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_tls_ops.h b/drivers/crypto/cnxk/cn10k_tls_o

[PATCH v4 6/8] crypto/cnxk: add support for padding verification in TLS

2024-03-14 Thread Vidya Sagar Velumuri
type. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_se.h | 1 + drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 151 +- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 17 ++- drivers/crypto/cnxk/cn10k_tls.c | 65 +++--- drivers/crypto

[PATCH v4 5/8] crypto/cnxk: move metadata to second cacheline

2024-03-14 Thread Vidya Sagar Velumuri
From: Anoob Joseph In security session, move PMD metadata to second cacheline. Also optimize the fields to minimize the memory usage. Signed-off-by: Anoob Joseph Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 10 ++ drivers/crypto/cnxk

[PATCH v4 4/8] crypto/cnxk: avoid branches in datapath

2024-03-14 Thread Vidya Sagar Velumuri
From: Anoob Joseph Avoid branches in datapath. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cn10k_ipsec_la_ops.h | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_ipsec_la_ops.h b/drivers/crypto/cnxk/cn10k_ipsec_la_ops.h index a30b8e4

[PATCH v4 3/8] crypto/cnxk: add support for session update for TLS

2024-03-14 Thread Vidya Sagar Velumuri
Add session update support for TLS Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_sec.c | 3 +++ drivers/crypto/cnxk/cn10k_tls.c | 17 + drivers/crypto/cnxk/cn10k_tls.h | 4 3 files changed, 24 insertions(+) diff --git a

[PATCH v4 2/8] crypto/cnxk: enable sha384 and chachapoly for tls

2024-03-14 Thread Vidya Sagar Velumuri
Enable SHA384-HMAC support for TLS & DTLS 1.2. Enable CHACHA20-POLY1305 support for TLS-1.3. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_ie_ot_tls.h | 1 + drivers/crypto/cnxk/cn10k_tls.c | 56 +-- drivers/crypto/cnxk/cnxk_cryptod

[PATCH v4 1/8] crypto/cnxk: multi seg support block ciphers in tls

2024-03-14 Thread Vidya Sagar Velumuri
Add support for Scatter-Gather mode for block ciphers in TLS-1.2 Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 3 +- drivers/crypto/cnxk/cn10k_tls.c | 5 +++ drivers/crypto/cnxk/cn10k_tls_ops.h | 48 ++- 3 files changed

[PATCH v4 0/8] Fixes and minor improvements for Crypto cnxk

2024-03-14 Thread Vidya Sagar Velumuri
to second cacheline Vidya Sagar Velumuri (5): crypto/cnxk: multi seg support block ciphers in tls crypto/cnxk: enable sha384 and chachapoly for tls crypto/cnxk: add support for session update for TLS crypto/cnxk: add support for padding verification in TLS crypto/cnxk: update the context

[PATCH v3 8/8] crypto/cnxk: update the context structure of tls

2024-03-14 Thread Vidya Sagar Velumuri
Keep the record context for TLS-1.3 in sync with microcode structure. Report error if optional padding is enabled for AEAD case in both TLS-1.2 and DTLS-1.2. Use the proper offset for calculating the context size in case of TLS-1.3. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk

[PATCH v3 7/8] crypto/cnxk: add support for oop processing in TLS

2024-03-14 Thread Vidya Sagar Velumuri
From: Aakash Sasidharan Add support for out-of-place processing in TLS. Signed-off-by: Aakash Sasidharan --- drivers/crypto/cnxk/cn10k_tls_ops.h | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_tls_ops.h b/drivers/crypto/cnxk/cn10k_tls_o

[PATCH v3 6/8] crypto/cnxk: add support for padding verification in TLS

2024-03-14 Thread Vidya Sagar Velumuri
type. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_se.h | 1 + drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 151 +- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 17 ++- drivers/crypto/cnxk/cn10k_tls.c | 65 +++--- drivers/crypto

[PATCH v3 5/8] crypto/cnxk: move metadata to second cacheline

2024-03-14 Thread Vidya Sagar Velumuri
From: Anoob Joseph In security session, move PMD metadata to second cacheline. Also optimize the fields to minimize the memory usage. Signed-off-by: Anoob Joseph Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 10 ++ drivers/crypto/cnxk

[PATCH v3 4/8] crypto/cnxk: avoid branches in datapath

2024-03-14 Thread Vidya Sagar Velumuri
From: Anoob Joseph Avoid branches in datapath. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cn10k_ipsec_la_ops.h | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_ipsec_la_ops.h b/drivers/crypto/cnxk/cn10k_ipsec_la_ops.h index a30b8e4

[PATCH v3 3/8] crypto/cnxk: add support for session update for TLS

2024-03-14 Thread Vidya Sagar Velumuri
Add session update support for TLS Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_sec.c | 3 +++ drivers/crypto/cnxk/cn10k_tls.c | 17 + drivers/crypto/cnxk/cn10k_tls.h | 4 3 files changed, 24 insertions(+) diff --git a

[PATCH v3 2/8] crypto/cnxk: enable sha384 and chachapoly for tls

2024-03-14 Thread Vidya Sagar Velumuri
Enable SHA384-HMAC support for TLS & DTLS 1.2. Enable CHACHA20-POLY1305 support for TLS-1.3. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_ie_ot_tls.h | 1 + drivers/crypto/cnxk/cn10k_tls.c | 56 +-- drivers/crypto/cnxk/cnxk_cryptod

[PATCH v3 1/8] crypto/cnxk: multi seg support block ciphers in tls

2024-03-14 Thread Vidya Sagar Velumuri
Add support for Scatter-Gather mode for block ciphers in TLS-1.2 Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 3 +- drivers/crypto/cnxk/cn10k_tls.c | 5 +++ drivers/crypto/cnxk/cn10k_tls_ops.h | 48 ++- 3 files changed

[PATCH v3 0/8] Fixes and minor improvements for Crypto cnxk

2024-03-14 Thread Vidya Sagar Velumuri
Fixes and minor improvements for Crypto cnxk PMD. v3: Resend v2: * Squashed related patches Aakash Sasidharan (1): crypto/cnxk: add support for oop processing in TLS Anoob Joseph (2): crypto/cnxk: avoid branches in datapath crypto/cnxk: move metadata to second cacheline Vidya Sagar

[PATCH v2 8/8] crypto/cnxk: update the context structure of tls

2024-03-14 Thread Vidya Sagar Velumuri
Keep the record context for TLS-1.3 in sync with microcode structure. Report error if optional padding is enabled for AEAD case in both TLS-1.2 and DTLS-1.2. Use the proper offset for calculating the context size in case of TLS-1.3. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk

[PATCH v2 7/8] crypto/cnxk: add support for oop processing in TLS

2024-03-14 Thread Vidya Sagar Velumuri
From: Aakash Sasidharan Add support for out-of-place processing in TLS. Signed-off-by: Aakash Sasidharan --- drivers/crypto/cnxk/cn10k_tls_ops.h | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_tls_ops.h b/drivers/crypto/cnxk/cn10k_tls_o

[PATCH v2 6/8] crypto/cnxk: add support for padding verification in TLS

2024-03-14 Thread Vidya Sagar Velumuri
type. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_se.h | 1 + drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 151 +- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 17 ++- drivers/crypto/cnxk/cn10k_tls.c | 65 +++--- drivers/crypto

[PATCH v2 5/8] crypto/cnxk: move metadata to second cacheline

2024-03-14 Thread Vidya Sagar Velumuri
In security session, move PMD metadata to second cacheline. Also optimize the fields to minimize the memory usage. Signed-off-by: Anoob Joseph Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 10 ++ drivers/crypto/cnxk/cn10k_ipsec.c | 4

[PATCH v2 4/8] crypto/cnxk: avoid branches in datapath

2024-03-14 Thread Vidya Sagar Velumuri
From: Anoob Joseph Avoid branches in datapath. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cn10k_ipsec_la_ops.h | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_ipsec_la_ops.h b/drivers/crypto/cnxk/cn10k_ipsec_la_ops.h index a30b8e4

[PATCH v2 3/8] crypto/cnxk: add support for session update for TLS

2024-03-14 Thread Vidya Sagar Velumuri
Add session update support for TLS Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_sec.c | 3 +++ drivers/crypto/cnxk/cn10k_tls.c | 17 + drivers/crypto/cnxk/cn10k_tls.h | 4 3 files changed, 24 insertions(+) diff --git a

[PATCH v2 2/8] crypto/cnxk: enable sha384 and chachapoly for tls

2024-03-14 Thread Vidya Sagar Velumuri
Enable SHA384-HMAC support for TLS & DTLS 1.2. Enable CHACHA20-POLY1305 support for TLS-1.3. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_ie_ot_tls.h | 1 + drivers/crypto/cnxk/cn10k_tls.c | 56 +-- drivers/crypto/cnxk/cnxk_cryptod

[PATCH v2 1/8] crypto/cnxk: multi seg support block ciphers in tls

2024-03-14 Thread Vidya Sagar Velumuri
Add support for Scatter-Gather mode for block ciphers in TLS-1.2 Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 3 +- drivers/crypto/cnxk/cn10k_tls.c | 5 +++ drivers/crypto/cnxk/cn10k_tls_ops.h | 48 ++- 3 files changed

[PATCH v2 0/8] crypto/cnxk: fixes and minor updates for TLS

2024-03-14 Thread Vidya Sagar Velumuri
v2: * squashed the related patches Aakash Sasidharan (1): crypto/cnxk: add support for oop processing in TLS Anoob Joseph (1): crypto/cnxk: avoid branches in datapath Vidya Sagar Velumuri (6): crypto/cnxk: multi seg support block ciphers in tls crypto/cnxk: enable sha384 and chachapoly

[PATCH 12/12] crypto/cnxk: remove the response len handling for tls

2024-03-14 Thread Vidya Sagar Velumuri
Microcode is updating the rlen properly for TLS-1.3 Remove the rlen handling for the same in PMD. Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c b/drivers/crypto

[PATCH 11/12] crypto/cnxk: enable chachapoly capability for tls

2024-03-14 Thread Vidya Sagar Velumuri
Enable CHACHA20-POLY1305 support for TLS-1.3. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_ie_ot_tls.h | 1 + drivers/crypto/cnxk/cn10k_tls.c | 40 --- drivers/crypto/cnxk/cnxk_cryptodev.h | 4 +- .../crypto/cnxk

[PATCH 09/12] crypto/cnxk: update the context structure of tls

2024-03-14 Thread Vidya Sagar Velumuri
Keep the record context for TLS-1.3 in sync with microcode structure. Report error if optional padding is enabled for AEAD case in both TLS-1.2 and DTLS-1.2. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_ie_ot_tls.h | 17 - drivers/crypto/cnxk/cn10k_tls.c

[PATCH 10/12] crypto/cnxk: use proper offset for context calculation

2024-03-14 Thread Vidya Sagar Velumuri
Use the proper offset for calculating the context size in case of TLS-1.3. Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/cnxk/cn10k_tls.c b/drivers/crypto/cnxk/cn10k_tls.c index

[PATCH 08/12] crypto/cnxk: add support for oop processing in TLS

2024-03-14 Thread Vidya Sagar Velumuri
From: Aakash Sasidharan Add support for out-of-place processing in TLS. Signed-off-by: Aakash Sasidharan --- drivers/crypto/cnxk/cn10k_tls_ops.h | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_tls_ops.h b/drivers/crypto/cnxk/cn10k_tls_o

[PATCH 07/12] crypto/cnxk: add support for padding verification in TLS

2024-03-14 Thread Vidya Sagar Velumuri
type. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_se.h | 1 + drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 146 +- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 18 +-- drivers/crypto/cnxk/cn10k_tls.c | 65 ++ drivers/crypto

[PATCH 06/12] crypto/cnxk: handle the extra len reported by microcode

2024-03-14 Thread Vidya Sagar Velumuri
Microcode reports one extra byte in response len specifically for AES-GCM in TLS-1.3. Handle the extra byte in PMD by decreasing the length by 1 byte. Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 9 ++--- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 3

[PATCH 05/12] crypto/cnxk: move metadata to second cacheline

2024-03-14 Thread Vidya Sagar Velumuri
In security session, move PMD metadata to second cacheline. Also optimize the fields to minimize the memory usage. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 10 ++ drivers/crypto/cnxk/cn10k_ipsec.c | 4 ++-- drivers/crypto/cnxk/cn10k_tls.c

[PATCH 03/12] crypto/cnxk: add support for session update for TLS

2024-03-14 Thread Vidya Sagar Velumuri
Add session update support for TLS Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_sec.c | 3 +++ drivers/crypto/cnxk/cn10k_tls.c | 17 + drivers/crypto/cnxk/cn10k_tls.h | 4 3 files changed, 24 insertions(+) diff --git a

[PATCH 04/12] crypto/cnxk: avoid branches in datapath

2024-03-14 Thread Vidya Sagar Velumuri
From: Anoob Joseph Avoid branches in datapath. Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cn10k_ipsec_la_ops.h | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_ipsec_la_ops.h b/drivers/crypto/cnxk/cn10k_ipsec_la_ops.h index a30b8e4

[PATCH 02/12] crypto/cnxk: enable sha384 capability for tls

2024-03-14 Thread Vidya Sagar Velumuri
Enable SHA384-HMAC support for TLS & DTLS 1.2. Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_tls.c | 16 +++--- drivers/crypto/cnxk/cnxk_cryptodev.h | 4 ++-- .../crypto/cnxk/cnxk_cryptodev_capabilities.c | 21 +++ 3 f

[PATCH 01/12] crypto/cnxk: multi seg support block ciphers in tls

2024-03-14 Thread Vidya Sagar Velumuri
Add support for Scatter-Gather mode for block ciphers in TLS-1.2 Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cn10k_cryptodev_sec.h | 3 +- drivers/crypto/cnxk/cn10k_tls.c | 5 +++ drivers/crypto/cnxk/cn10k_tls_ops.h | 48 ++- 3 files changed

[PATCH 00/12] Add TLS features

2024-03-14 Thread Vidya Sagar Velumuri
Add the following features 1. Multi segmented packet for TLS 2. Padding verification for TLS 3. SHA384 & ChaChaPoly for TLS Aakash Sasidharan (1): crypto/cnxk: add support for oop processing in TLS Anoob Joseph (1): crypto/cnxk: avoid branches in datapath Vidya Sagar Velumuri (10): cr

[PATCH v1] test/crypto: fix timeout in Rx inject

2023-11-20 Thread Vidya Sagar Velumuri
Fix the timeout condition for rx in Rx inject. Fixes: 69e1a909aa08 (test/crypto: add Rx inject) Signed-off-by: Vidya Sagar Velumuri diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 96a3f36d73..58561ededf 100644 --- a/app/test/test_cryptodev.c +++ b/app/test

[dpdk-dev] [PATCH v2 2/2] crypto/cnxk: fix: supported iv length for zuc 256

2021-11-03 Thread Vidya Sagar Velumuri
Fix supported IV length for ZUC 256 Add support in capability for 4 byte mac len for zuc 256 Pack the last 8 bytes of IV to 6 bytes by ignoring the 2 msb bits of each byte. Fixes: 29742632ac9e ("crypto/cnxk: support ZUC with 256-bit key") Cc: vvelum...@marvell.com Signed-off-by: V

[dpdk-dev] [PATCH v2 1/2] common/cnxk: fix: use appropriate zuc constants

2021-11-03 Thread Vidya Sagar Velumuri
Use appropriate ZUC constants based on key length and mac length Fixes: a90db80d7d72 ("common/cnxk: set key length for PDCP algos") Cc: vvelum...@marvell.com Signed-off-by: Vidya Sagar Velumuri v2: * Fixed remove gerrit ID warning diff --git a/drivers/common/cnxk/roc_se.c b/drivers/c

[dpdk-dev] [PATCH v1 2/2] crypto/cnxk: fix: supported iv length for zuc 256

2021-11-03 Thread Vidya Sagar Velumuri
Fix supported IV length for ZUC 256 Add support in capability for 4 byte mac len for zuc 256 Pack the last 8 bytes of IV to 6 bytes by ignoring the 2 msb bits of each byte. Fixes: 29742632ac9e ("crypto/cnxk: support ZUC with 256-bit key") Cc: vvelum...@marvell.com Signed-off-by: V

[dpdk-dev] [PATCH v1 1/2] common/cnxk: fix: use appropriate zuc constants

2021-11-03 Thread Vidya Sagar Velumuri
Use appropriate ZUC constants based on key length and mac length Fixes: a90db80d7d72 ("common/cnxk: set key length for PDCP algos") Cc: vvelum...@marvell.com Signed-off-by: Vidya Sagar Velumuri Change-Id: Ie982110035916d2168cc4e79b7f5145c6d6ac021 diff --git a/drivers/common/cnxk/

[dpdk-dev] [PATCH v3] test/crypto: fix: test vectors for zuc 256 bit key

2021-11-03 Thread Vidya Sagar Velumuri
Fix the test vectors added for zuc 256-bit key Add known vectors form ZUC 256 RFC. Fixes: fa5bf9345d4e (test/crypto: add ZUC cases with 256-bit keys) Signed-off-by: Vidya Sagar Velumuri v3: * Fixed spell check diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 814a0b401d

[dpdk-dev] [PATCH v2] test/crypto: fix: test vectors for zuc 256 bit key

2021-11-02 Thread Vidya Sagar Velumuri
Fix the test vectors added for zuc 256-bit key Add known vectores form ZUC 256 RFC. Fixes: fa5bf9345d4e (test/crypto: add ZUC cases with 256-bit keys) Signed-off-by: Vidya Sagar Velumuri diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 814a0b401d..38bbd6274b 100644

Re: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256 bit key

2021-11-01 Thread Vidya Sagar Velumuri
(L 2(W 2L kW 1H)), where S = (S 0;S 1;S 0;S 1) is the 4 parallel S-boxes which are the same as those used in the previous ZUC ... www.is.cas.cn Could you please check if these vectors work in your platform. Regards Sagar From: Vidya Sagar Velumuri Sent: 01 No

Re: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256 bit key

2021-11-01 Thread Vidya Sagar Velumuri
Hi Pablo, Verified with updated test vector. the output did not change from previous output but also, it did not match the ouput present in the vector. Regards Sagar From: De Lara Guarch, Pablo Sent: 01 November 2021 03:36 To: Vidya Sagar Velumuri ; Ankur

Re: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256 bit key

2021-10-30 Thread Vidya Sagar Velumuri
> 0x3f. Could you please elaborate how these bytes are considered for generation of digest. Regards Sagar From: De Lara Guarch, Pablo Sent: 29 October 2021 18:07 To: Vidya Sagar Velumuri ; Ankur Dwivedi ; Anoob Joseph ; Tejasree Kondoj ; Nithin Kumar Dabilpu

[dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256 bit key

2021-10-27 Thread Vidya Sagar Velumuri
Fix the IV and MAC in the test vectors added for zuc 256-bit key Fixes: fa5bf9345d4e (test/crypto: add ZUC cases with 256-bit keys) Signed-off-by: Vidya Sagar Velumuri diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 814a0b401d..773db1dbea 100644 --- a/app/test

Re: [dpdk-dev] [EXT] Re: [Bug 828] [dpdk-21.11] zuc unit test is failing

2021-10-15 Thread Vidya Sagar Velumuri
From: Akhil Goyal Sent: 15 October 2021 23:34 To: David Marchand ; Vidya Sagar Velumuri Cc: dev ; Zhang, Roy Fan ; De Lara Guarch, Pablo Subject: RE: [EXT] Re: [dpdk-dev] [Bug 828] [dpdk-21.11] zuc unit test is failing > Hello, > > On Fri, Oct 15, 2021 at 10:02 AM wrote: >

Re: [dpdk-dev] [PATCH v1 3/3] test/crypto: add ZUC test cases for 256 bit key

2021-10-06 Thread Vidya Sagar Velumuri
Hi Pablo, From: De Lara Guarch, Pablo Sent: 01 October 2021 17:38 To: Vidya Sagar Velumuri ; Ankur Dwivedi ; Anoob Joseph ; Tejasree Kondoj ; Nithin Kumar Dabilpuram ; Kiran Kumar Kokkilagadda ; Sunil Kumar Kori ; Satha Koteswara Rao Kottidi ; Akhil Goyal

[dpdk-dev] [PATCH v1 3/3] test/crypto: add ZUC test cases for 256 bit key

2021-09-14 Thread Vidya Sagar Velumuri
Add test cases for zuc 256 bit key. Add test case for zuc 8 and 16 byte digest with 256 bit key mode Signed-off-by: Vidya Sagar Velumuri diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 16d770a17f..27dd3355b2 100644 --- a/app/test/test_cryptodev.c +++ b/app/test

[dpdk-dev] [PATCH v1 2/3] crypto/cnxk: support for 256 bit key length in ZUC

2021-09-14 Thread Vidya Sagar Velumuri
Add support for 256 bit key length for ZUC in crpto_cn10k PMD. Add support for digest length of 8 and 16 bytes for ZUC with 256 bit key length. Signed-off-by: Vidya Sagar Velumuri diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst index 3fa8018695

[dpdk-dev] [PATCH v1 1/3] common/cnxk: set key length setting for PDCP algos

2021-09-14 Thread Vidya Sagar Velumuri
Set proper bits in the context based on key length for PDCP Signed-off-by: Vidya Sagar Velumuri diff --git a/drivers/common/cnxk/roc_se.c b/drivers/common/cnxk/roc_se.c index 03fbc5f2f7..4edbc8e547 100644 --- a/drivers/common/cnxk/roc_se.c +++ b/drivers/common/cnxk/roc_se.c @@ -160,6 +160,13