[v1 4/6] cryptodev: use generic EC xform params for SM2

2023-08-10 Thread Gowrishankar Muthukrishnan
Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_cryptodev_asym.c | 12 app/test/test_cryptodev_sm2_test_vectors.h | 4 +++- doc/guides/rel_notes/release_23_11.rst | 2 ++ drivers/crypto/openssl/rte_openssl_pmd_ops.c | 2 +- lib/cryptodev

[v1 5/6] app/test: check asymmetric capabilities in SM2 test

2023-08-10 Thread Gowrishankar Muthukrishnan
Check asymmetric capabilities such as SM3 hash support and internal RNG and accordingly choose op params for SM2 test. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_cryptodev_asym.c | 127 ++--- app/test/test_cryptodev_sm2_test_vectors.h | 28 +++-- 2

[v1 6/6] crypto/cnxk: add SM2 support

2023-08-10 Thread Gowrishankar Muthukrishnan
Add SM2 asymmetric algorithm support in cnxk PMD. Signed-off-by: Gowrishankar Muthukrishnan --- doc/guides/cryptodevs/features/cn10k.ini | 1 + doc/guides/rel_notes/release_23_11.rst| 4 + drivers/common/cnxk/hw/cpt.h | 3 +- drivers/common/cnxk/roc_ae.c

[PATCH] app/dma-perf: validate copied memory

2023-08-10 Thread Gowrishankar Muthukrishnan
Validate copied memory to ensure DMA copy did not fail. Signed-off-by: Gowrishankar Muthukrishnan Change-Id: I9f888c061f3d077f6b7b2d8a66c6a7cb7e5f2437 --- app/test-dma-perf/benchmark.c | 23 +-- app/test-dma-perf/main.c | 16 +++- app/test-dma-perf/main.h

[PATCH] app/dma-perf: add SG copy support

2023-08-10 Thread Gowrishankar Muthukrishnan
Add SG copy support. Signed-off-by: Gowrishankar Muthukrishnan Change-Id: I17c736bec5c8309b4c9cbe9fb1eafa5b5a00a3fe --- app/test-dma-perf/benchmark.c | 204 +- app/test-dma-perf/config.ini | 17 +++ app/test-dma-perf/main.c | 35 +- app/test-dma-perf

[PATCH] app/dma-perf: validate copied memory

2023-08-10 Thread Gowrishankar Muthukrishnan
Validate copied memory to ensure DMA copy did not fail. Fixes: 623dc9364dc ("app/dma-perf: introduce DMA performance test") Signed-off-by: Gowrishankar Muthukrishnan --- v2: - patch issue fixed. --- app/test-dma-perf/benchmark.c | 23 +-- app/test-dma-perf/main.c

[PATCH v2] app/dma-perf: add SG copy support

2023-08-10 Thread Gowrishankar Muthukrishnan
Add SG copy support. Signed-off-by: Gowrishankar Muthukrishnan --- v2: - patch issue fixed. --- app/test-dma-perf/benchmark.c | 204 +- app/test-dma-perf/config.ini | 17 +++ app/test-dma-perf/main.c | 35 +- app/test-dma-perf/main.h | 5 +- 4

[PATCH] test/dma: add test skip status

2023-08-10 Thread Gowrishankar Muthukrishnan
Add status on skipped tests. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_dmadev_api.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/app/test/test_dmadev_api.c b/app/test/test_dmadev_api.c index 4a181af90a..a1646472b0 100644 --- a

[PATCH] test/dma: test vchan reconfiguration

2023-08-10 Thread Gowrishankar Muthukrishnan
Reconfigure vchan count and validate if new count is effective. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_dmadev_api.c | 51 ++ 1 file changed, 51 insertions(+) diff --git a/app/test/test_dmadev_api.c b/app/test/test_dmadev_api.c index

[PATCH] test/dma: add SG copy tests

2023-08-10 Thread Gowrishankar Muthukrishnan
Add scatter-gather copy tests. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_dmadev.c | 124 +++- app/test/test_dmadev_api.c | 163 ++--- app/test/test_dmadev_api.h | 2 + 3 files

[PATCH 0/4] test/dma: run tests as per configured pmd

2023-08-10 Thread Gowrishankar Muthukrishnan
This series enables dmadev tests to run as per configured PMDs, similar to other subsystem like cryptodev. Gowrishankar Muthukrishnan (4): dmadev: add function to get list of device identifiers test/dma: run tests according to PMD dma/cnxk: update PCI driver name test/dma: enable cnxk

[PATCH 1/4] dmadev: add function to get list of device identifiers

2023-08-10 Thread Gowrishankar Muthukrishnan
Add a function to get list of device identifiers for a given driver name. Signed-off-by: Gowrishankar Muthukrishnan --- lib/dmadev/rte_dmadev.c | 20 lib/dmadev/rte_dmadev.h | 21 + lib/dmadev/version.map | 1 + 3 files changed, 42 insertions(+) diff

[PATCH 2/4] test/dma: run tests according to PMD

2023-08-10 Thread Gowrishankar Muthukrishnan
Run tests according to PMD configured. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/meson.build | 7 +++- app/test/test_dmadev.c | 87 +++--- 2 files changed, 71 insertions(+), 23 deletions(-) diff --git a/app/test/meson.build b/app/test

[PATCH 3/4] dma/cnxk: update PCI driver name

2023-08-10 Thread Gowrishankar Muthukrishnan
Follow PCI driver naming convention standard across drivers. Signed-off-by: Gowrishankar Muthukrishnan --- drivers/dma/cnxk/cnxk_dmadev.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/dma/cnxk/cnxk_dmadev.c b/drivers/dma/cnxk/cnxk_dmadev.c index a6f4a31e0e

[PATCH 4/4] test/dma: enable cnxk tests

2023-08-10 Thread Gowrishankar Muthukrishnan
Enable DMA tests for CNXK driver. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/meson.build | 1 + app/test/test_dmadev.c | 9 + 2 files changed, 10 insertions(+) diff --git a/app/test/meson.build b/app/test/meson.build index de671b665f..fa5987f3a2 100644 --- a/app/test

[PATCH v2 0/3] test/dma: add vchan reconfig and SG tests

2023-08-10 Thread Gowrishankar Muthukrishnan
This patch series adds vchan reconfiguration and SG tests. v2: - combined individual test patches with 1/3 as tests can be skipped unless supported by PMD. Gowrishankar Muthukrishnan (3): test/dma: add test skip status test/dma: test vchan reconfiguration test/dma: add SG copy tests

[PATCH v2 2/3] test/dma: test vchan reconfiguration

2023-08-10 Thread Gowrishankar Muthukrishnan
Reconfigure vchan count and validate if new count is effective. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_dmadev_api.c | 51 ++ 1 file changed, 51 insertions(+) diff --git a/app/test/test_dmadev_api.c b/app/test/test_dmadev_api.c index

[PATCH v2 1/3] test/dma: add test skip status

2023-08-10 Thread Gowrishankar Muthukrishnan
Add status on skipped tests. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_dmadev_api.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/app/test/test_dmadev_api.c b/app/test/test_dmadev_api.c index 4a181af90a..a1646472b0 100644 --- a

[PATCH v2 3/3] test/dma: add SG copy tests

2023-08-10 Thread Gowrishankar Muthukrishnan
Add scatter-gather copy tests. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_dmadev.c | 124 +++- app/test/test_dmadev_api.c | 163 ++--- app/test/test_dmadev_api.h | 2 + 3 files

[PATCH v3 0/2] app/dma-perf: add SG copy support

2023-08-10 Thread Gowrishankar Muthukrishnan
Add SG copy support in dma-perf application. v3: - Combined patch that does copy validation along with this patch, which means better validation for SG. Gowrishankar Muthukrishnan (2): app/dma-perf: validate copied memory app/dma-perf: add SG copy support app/test-dma-perf/benchmark.c

[PATCH v3 1/2] app/dma-perf: validate copied memory

2023-08-10 Thread Gowrishankar Muthukrishnan
Validate copied memory to ensure DMA copy did not fail. Fixes: 623dc9364dc ("app/dma-perf: introduce DMA performance test") Signed-off-by: Gowrishankar Muthukrishnan --- app/test-dma-perf/benchmark.c | 23 +-- app/test-dma-perf/main.c | 16 +++-

[PATCH v3 2/2] app/dma-perf: add SG copy support

2023-08-10 Thread Gowrishankar Muthukrishnan
Add SG copy support. Signed-off-by: Gowrishankar Muthukrishnan --- app/test-dma-perf/benchmark.c | 204 +- app/test-dma-perf/config.ini | 17 +++ app/test-dma-perf/main.c | 35 +- app/test-dma-perf/main.h | 5 +- 4 files changed, 231 insertions

[PATCH] app/test: validate shorter private key in ECDSA P521 test

2023-08-10 Thread Gowrishankar Muthukrishnan
Update test vector of ECDSA P521 curve for validating private key of length shorter than prime length. As prime length of this test is not aligned by 8 bytes, this new test vector could test any alignment issue along with the sign validation. Signed-off-by: Gowrishankar Muthukrishnan --- app

RE: [EXT] [RFC] cryptodev: refactor sm2, add plain message flag

2023-08-14 Thread Gowrishankar Muthukrishnan
> + * Structure describing SM2 xform params. > + */ > +struct rte_crypto_sm2_xform { > + enum rte_crypto_auth_algorithm hash; > + /**< Hash algorithm used in SM2 op. */ > + rte_crypto_uint dA; > + /**< Private key. */ > + struct rte_cr

RE: [EXT] [PATCH v2] app/dma-perf: fix lcores array out of bounds access

2023-10-27 Thread Gowrishankar Muthukrishnan
Looks good to me. Acked-by: Gowrishankar Muthukrishnan

[PATCH v2] crypto/openssl: fix memory leaks in asym ops

2023-11-02 Thread Gowrishankar Muthukrishnan
Fix memory leaks in Asymmetric ops, as reported by valgrind. Signed-off-by: Gowrishankar Muthukrishnan --- v2: - added more fixes. --- drivers/crypto/openssl/rte_openssl_pmd.c | 38 ++-- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 15 ++-- 2 files changed, 39

[PATCH v3] crypto/openssl: fix memory leaks in asym ops

2023-11-03 Thread Gowrishankar Muthukrishnan
Fix memory leaks in Asymmetric ops, as reported by valgrind. Signed-off-by: Gowrishankar Muthukrishnan --- v3: - changes as suggested in v2. --- drivers/crypto/openssl/rte_openssl_pmd.c | 30 +--- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 16 +++ 2 files

RE: [EXT] Re: [PATCH v2] crypto/openssl: fix memory leaks in asym ops

2023-11-03 Thread Gowrishankar Muthukrishnan
> All these checks for null are unnecessary: > >EVP_PKEY_free() decrements the reference count of key and, if the > reference count is zero, >frees it up. If key is NULL, nothing is done. > > > Let me add those functions to cocci nullfree script as well. Ack.

[PATCH v3 0/3] test/dma: add vchan reconfig and SG tests

2023-11-03 Thread Gowrishankar Muthukrishnan
This patch series reworks DMA tests to follow unit test framework followed by new vchan reconfig and SG tests. v3: - followed unit test framework. Gowrishankar Muthukrishnan (3): test/dma: use unit test framework test/dma: test vchan reconfiguration test/dma: add SG copy tests app/test

[PATCH v3 1/3] test/dma: use unit test framework

2023-11-03 Thread Gowrishankar Muthukrishnan
Use unit test framework to execute DMA tests. Signed-off-by: Gowrishankar Muthukrishnan Suggested-by: Chengwen Feng --- app/test/test_dmadev.c | 240 - app/test/test_dmadev_api.c | 89 -- 2 files changed, 212 insertions(+), 117 deletions

[PATCH v3 2/3] test/dma: test vchan reconfiguration

2023-11-03 Thread Gowrishankar Muthukrishnan
Reconfigure vchan count and validate if new count is effective. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_dmadev_api.c | 63 +- 1 file changed, 55 insertions(+), 8 deletions(-) diff --git a/app/test/test_dmadev_api.c b/app/test

[PATCH v3 3/3] test/dma: add SG copy tests

2023-11-03 Thread Gowrishankar Muthukrishnan
Add scatter-gather copy tests. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_dmadev.c | 132 +- app/test/test_dmadev_api.c | 163 ++--- app/test/test_dmadev_api.h | 2 + 3 files

[PATCH v2] test/cryptodev: add ECDH tests

2023-11-08 Thread Gowrishankar Muthukrishnan
Add ECDH tests. Signed-off-by: Gowrishankar Muthukrishnan Change-Id: I88099e2ba8e058fbb519a06d09ebb3ece7c7e27f --- v2: - rebased due to patch conflict. --- app/test/test_cryptodev_asym.c | 741 app/test/test_cryptodev_asym_util.h | 12 + app/test

[PATCH v6 0/4] PCI Dev and SG copy support

2023-11-12 Thread Gowrishankar Muthukrishnan
Improve dma-perf application to support PCI dev and SG copy, along with additional supports below: - validate copied memory - skip tests if not opted. v6: - PCI patch updated. Amit Prakash Shukla (2): app/dma-perf: add skip support app/dma-perf: add PCI device support Gowrishankar

[PATCH v6 1/4] app/dma-perf: add skip support

2023-11-12 Thread Gowrishankar Muthukrishnan
From: Amit Prakash Shukla Add support to skip running a dma-perf test-case. Signed-off-by: Amit Prakash Shukla Acked-by: Anoob Joseph --- app/test-dma-perf/config.ini | 2 ++ app/test-dma-perf/main.c | 23 +++ app/test-dma-perf/main.h | 1 + 3 files changed, 26 i

[PATCH v6 2/4] app/dma-perf: add PCI device support

2023-11-12 Thread Gowrishankar Muthukrishnan
From: Amit Prakash Shukla Add support to test performance for "device to memory" and "memory to device" data transfer. Signed-off-by: Amit Prakash Shukla Acked-by: Anoob Joseph --- v6: - fix mbuf IOVA with remote address --- --- app/test-dma-perf/benchmark.c | 108 +++

[PATCH v6 3/4] app/dma-perf: validate copied memory

2023-11-12 Thread Gowrishankar Muthukrishnan
Validate copied memory to ensure DMA copy did not fail. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Anoob Joseph --- app/test-dma-perf/benchmark.c | 21 - app/test-dma-perf/main.c | 16 +++- app/test-dma-perf/main.h | 2 +- 3 files changed, 32

[PATCH v6 4/4] app/dma-perf: add SG copy support

2023-11-12 Thread Gowrishankar Muthukrishnan
Add SG copy support. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Anoob Joseph --- app/test-dma-perf/benchmark.c | 274 +- app/test-dma-perf/config.ini | 19 ++- app/test-dma-perf/main.c | 34 - app/test-dma-perf/main.h | 5 +- 4 files

[PATCH v4] crypto/openssl: fix memory leaks in asym ops

2023-11-12 Thread Gowrishankar Muthukrishnan
Fix memory leaks in Asymmetric ops, as reported by valgrind. Signed-off-by: Gowrishankar Muthukrishnan --- v4: - patch rebased. --- drivers/crypto/openssl/rte_openssl_pmd.c | 28 drivers/crypto/openssl/rte_openssl_pmd_ops.c | 16 +++ 2 files changed, 28

RE: [EXT] Re: [PATCH v3 3/3] test/dma: add SG copy tests

2023-11-13 Thread Gowrishankar Muthukrishnan
Hi Fengchengwen, > > On 2023/11/3 23:38, Gowrishankar Muthukrishnan wrote: > > Add scatter-gather copy tests. > > > > Signed-off-by: Vidya Sagar Velumuri > > Signed-off-by: Gowrishankar Muthukrishnan > > --- > > app/test/test_dmadev.c | 132 ++

RE: [EXT] Re: [PATCH v3 1/3] test/dma: use unit test framework

2023-11-13 Thread Gowrishankar Muthukrishnan
etter use > sub testsuite (could refer test_pdcp.c). Anyway, this is further more, we > could do it later. > > As the first stage, I think current impl is OK with above comments addressed. > Ack. Regards, Gowrishankar > Thanks > Chengwen

[PATCH v4 0/3] test/dma: add vchan reconfig and SG tests

2023-11-13 Thread Gowrishankar Muthukrishnan
This patch series reworks DMA tests to follow unit test framework followed by new vchan reconfig and SG tests. v4: - Suggestions from Fengchenwen addressed. Gowrishankar Muthukrishnan (3): test/dma: use unit test framework test/dma: test multiple vchan test/dma: add SG copy tests app

[PATCH v4 1/3] test/dma: use unit test framework

2023-11-13 Thread Gowrishankar Muthukrishnan
Use unit test framework to execute DMA tests. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_dmadev.c | 235 + app/test/test_dmadev_api.c | 95 +-- 2 files changed, 193 insertions(+), 137 deletions(-) diff --git a/app/test

[PATCH v4 2/3] test/dma: test multiple vchan

2023-11-13 Thread Gowrishankar Muthukrishnan
Support API with multiple vchan test. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_dmadev_api.c | 63 +- 1 file changed, 55 insertions(+), 8 deletions(-) diff --git a/app/test/test_dmadev_api.c b/app/test/test_dmadev_api.c index 73d4db825a

[PATCH v4 3/3] test/dma: add SG copy tests

2023-11-13 Thread Gowrishankar Muthukrishnan
Add scatter-gather copy tests. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_dmadev.c | 139 ++- app/test/test_dmadev_api.c | 164 ++--- 2 files changed, 289 insertions(+), 14

[PATCH v5 0/3] test/dma: add vchan reconfig and SG tests

2023-11-16 Thread Gowrishankar Muthukrishnan
This patch series reworks DMA tests to follow unit test framework followed by new vchan reconfig and SG tests. v5: - patch rebased. Gowrishankar Muthukrishnan (3): test/dma: use unit test framework test/dma: test multiple vchan test/dma: add SG copy tests app/test/test_dmadev.c

[PATCH v5 1/3] test/dma: use unit test framework

2023-11-16 Thread Gowrishankar Muthukrishnan
Use unit test framework to execute DMA tests. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- app/test/test_dmadev.c | 236 + app/test/test_dmadev_api.c | 95 +-- 2 files changed, 193 insertions(+), 138 deletions

[PATCH v5 2/3] test/dma: test multiple vchan

2023-11-16 Thread Gowrishankar Muthukrishnan
Support API with multiple vchan test. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- app/test/test_dmadev_api.c | 63 +- 1 file changed, 55 insertions(+), 8 deletions(-) diff --git a/app/test/test_dmadev_api.c b/app/test

[PATCH v5 3/3] test/dma: add SG copy tests

2023-11-16 Thread Gowrishankar Muthukrishnan
Add scatter-gather copy tests. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- app/test/test_dmadev.c | 139 ++- app/test/test_dmadev_api.c | 164 ++--- 2 files changed

[PATCH v6 0/3] test/dma: add vchan reconfig and SG tests

2023-11-16 Thread Gowrishankar Muthukrishnan
This patch series reworks DMA tests to follow unit test framework followed by new vchan reconfig and SG tests. v6: - fixed coding style warning (to use REGISTER_DRIVER_TEST). Gowrishankar Muthukrishnan (3): test/dma: use unit test framework test/dma: test multiple vchan test/dma: add SG

[PATCH v6 1/3] test/dma: use unit test framework

2023-11-16 Thread Gowrishankar Muthukrishnan
Use unit test framework to execute DMA tests. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- app/test/test_dmadev.c | 234 + app/test/test_dmadev_api.c | 95 +-- 2 files changed, 192 insertions(+), 137 deletions

[PATCH v6 2/3] test/dma: test multiple vchan

2023-11-16 Thread Gowrishankar Muthukrishnan
Support API with multiple vchan test. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- app/test/test_dmadev_api.c | 63 +- 1 file changed, 55 insertions(+), 8 deletions(-) diff --git a/app/test/test_dmadev_api.c b/app/test

[PATCH v6 3/3] test/dma: add SG copy tests

2023-11-16 Thread Gowrishankar Muthukrishnan
Add scatter-gather copy tests. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- app/test/test_dmadev.c | 139 ++- app/test/test_dmadev_api.c | 164 ++--- 2 files changed

[PATCH v7 0/3] test/dma: add vchan reconfig and SG tests

2023-11-16 Thread Gowrishankar Muthukrishnan
This patch series reworks DMA tests to follow unit test framework followed by new vchan reconfig and SG tests. v7: - Addressed compilation issue in Windows platform. Gowrishankar Muthukrishnan (3): test/dma: use unit test framework test/dma: test multiple vchan test/dma: add SG copy tests

[PATCH v7 1/3] test/dma: use unit test framework

2023-11-16 Thread Gowrishankar Muthukrishnan
Use unit test framework to execute DMA tests. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- v7: - Used string const in unit_test_cases name member to avoid compilation failure in Windows platform. --- app/test/test_dmadev.c | 234

[PATCH v7 2/3] test/dma: test multiple vchan

2023-11-16 Thread Gowrishankar Muthukrishnan
Support API with multiple vchan test. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- app/test/test_dmadev_api.c | 63 +- 1 file changed, 55 insertions(+), 8 deletions(-) diff --git a/app/test/test_dmadev_api.c b/app/test

[PATCH v7 3/3] test/dma: add SG copy tests

2023-11-16 Thread Gowrishankar Muthukrishnan
Add scatter-gather copy tests. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- app/test/test_dmadev.c | 139 ++- app/test/test_dmadev_api.c | 164 ++--- 2 files changed

[PATCH v8 0/3] test/dma: add vchan reconfig and SG tests

2023-11-16 Thread Gowrishankar Muthukrishnan
This patch series reworks DMA tests to follow unit test framework followed by new vchan reconfig and SG tests. v8: - Addressed compilation issue in Windows platform. Gowrishankar Muthukrishnan (3): test/dma: use unit test framework test/dma: test multiple vchan test/dma: add SG copy tests

[PATCH v8 3/3] test/dma: add SG copy tests

2023-11-16 Thread Gowrishankar Muthukrishnan
Add scatter-gather copy tests. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- app/test/test_dmadev.c | 139 ++- app/test/test_dmadev_api.c | 164 ++--- 2 files changed

[PATCH v8 1/3] test/dma: use unit test framework

2023-11-16 Thread Gowrishankar Muthukrishnan
Use unit test framework to execute DMA tests. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- v8: - Used local macro instead of NAME_MAX, due to compilation issue in Windows. --- app/test/test_dmadev.c | 235 + app/test

[PATCH v8 2/3] test/dma: test multiple vchan

2023-11-16 Thread Gowrishankar Muthukrishnan
Support API with multiple vchan test. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chengwen Feng --- app/test/test_dmadev_api.c | 63 +- 1 file changed, 55 insertions(+), 8 deletions(-) diff --git a/app/test/test_dmadev_api.c b/app/test

[PATCH v7 0/4] PCI Dev and SG copy support

2023-11-17 Thread Gowrishankar Muthukrishnan
Improve dma-perf application to support PCI dev and SG copy, along with additional supports below: - validate copied memory - skip tests if not opted. v7: - PCI patch updated. Amit Prakash Shukla (2): app/dma-perf: add skip support app/dma-perf: add PCI device support Gowrishankar

[PATCH v7 1/4] app/dma-perf: add skip support

2023-11-17 Thread Gowrishankar Muthukrishnan
From: Amit Prakash Shukla Add support to skip running a dma-perf test-case. Signed-off-by: Amit Prakash Shukla Acked-by: Anoob Joseph --- app/test-dma-perf/config.ini | 2 ++ app/test-dma-perf/main.c | 23 +++ app/test-dma-perf/main.h | 1 + 3 files changed, 26 i

[PATCH v7 2/4] app/dma-perf: add PCI device support

2023-11-17 Thread Gowrishankar Muthukrishnan
From: Amit Prakash Shukla Add support to test performance for "device to memory" and "memory to device" data transfer. Signed-off-by: Amit Prakash Shukla Acked-by: Anoob Joseph --- v7: - changed cfg->raddr type to uintptr_t to fix 32 bit compilation. --- app/test-dma-perf/benchmark.c | 108 +

[PATCH v7 3/4] app/dma-perf: validate copied memory

2023-11-17 Thread Gowrishankar Muthukrishnan
Validate copied memory to ensure DMA copy did not fail. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Anoob Joseph --- app/test-dma-perf/benchmark.c | 21 - app/test-dma-perf/main.c | 16 +++- app/test-dma-perf/main.h | 2 +- 3 files changed, 32

[PATCH v7 4/4] app/dma-perf: add SG copy support

2023-11-17 Thread Gowrishankar Muthukrishnan
Add SG copy support. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Anoob Joseph --- app/test-dma-perf/benchmark.c | 274 +- app/test-dma-perf/config.ini | 19 ++- app/test-dma-perf/main.c | 34 - app/test-dma-perf/main.h | 5 +- 4 files

[PATCH v8 0/4] PCI Dev and SG copy support

2023-11-22 Thread Gowrishankar Muthukrishnan
Improve dma-perf application to support PCI dev and SG copy, along with additional supports below: - validate copied memory - skip tests if not opted. v8: - updated skip test patch. Amit Prakash Shukla (2): app/dma-perf: add skip support app/dma-perf: add PCI device support Gowrishankar

[PATCH v8 1/4] app/dma-perf: add skip support

2023-11-22 Thread Gowrishankar Muthukrishnan
From: Amit Prakash Shukla Add support to skip running a dma-perf test-case. Signed-off-by: Amit Prakash Shukla Acked-by: Anoob Joseph Acked-by: Chengwen Feng --- v8: - abstracted csv file write error log --- app/test-dma-perf/config.ini | 2 ++ app/test-dma-perf/main.c | 48 +++

[PATCH v8 2/4] app/dma-perf: add PCI device support

2023-11-22 Thread Gowrishankar Muthukrishnan
From: Amit Prakash Shukla Add support to test performance for "device to memory" and "memory to device" data transfer. Signed-off-by: Amit Prakash Shukla Acked-by: Anoob Joseph --- app/test-dma-perf/benchmark.c | 108 +++--- app/test-dma-perf/config.ini | 37

[PATCH v8 3/4] app/dma-perf: validate copied memory

2023-11-22 Thread Gowrishankar Muthukrishnan
Validate copied memory to ensure DMA copy did not fail. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Anoob Joseph --- app/test-dma-perf/benchmark.c | 21 - app/test-dma-perf/main.c | 16 +++- app/test-dma-perf/main.h | 2 +- 3 files changed, 32

[PATCH v8 4/4] app/dma-perf: add SG copy support

2023-11-22 Thread Gowrishankar Muthukrishnan
Add SG copy support. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Anoob Joseph --- app/test-dma-perf/benchmark.c | 274 +- app/test-dma-perf/config.ini | 19 ++- app/test-dma-perf/main.c | 34 - app/test-dma-perf/main.h | 5 +- 4 files

[PATCH v1 1/3] cryptodev: add EDDSA asymmetric crypto algorithm

2023-11-29 Thread Gowrishankar Muthukrishnan
Add support for asymmetric EDDSA in cryptodev, as referenced in RFC: https://datatracker.ietf.org/doc/html/rfc8032 Signed-off-by: Gowrishankar Muthukrishnan --- doc/guides/cryptodevs/features/default.ini | 1 + doc/guides/prog_guide/cryptodev_lib.rst| 2 +- lib/cryptodev/rte_crypto_asym.h

[PATCH v1 2/3] crypto/openssl: add EDDSA support

2023-11-29 Thread Gowrishankar Muthukrishnan
Add EDDSA support in OpenSSL PMD. Signed-off-by: Gowrishankar Muthukrishnan --- For openssl library support, refer: https://github.com/openssl/openssl/commit/4f8b7c2319523f8e83b8b2fa31127832fa092552 --- drivers/crypto/openssl/openssl_pmd_private.h | 6 + drivers/crypto/openssl

[PATCH v1 3/3] test/crypto: add asymmetric EDDSA test cases

2023-11-29 Thread Gowrishankar Muthukrishnan
Add test cases to validate EDDSA sign and verify ops, as per RFC 8032. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_cryptodev_asym.c | 339 +++ app/test/test_cryptodev_eddsa_test_vectors.h | 330 ++ 2 files changed, 669 insertions

RE: [PATCH v8 0/3] test/dma: add vchan reconfig and SG tests

2023-12-07 Thread Gowrishankar Muthukrishnan
Hi, Could this patch series be reviewed ? As of now, patches are rebased without any conflicts. Thanks, Gowrishankar > -Original Message- > From: Gowrishankar Muthukrishnan > Sent: Thursday, November 16, 2023 11:15 PM > To: dev@dpdk.org > Cc: Anoob Joseph ; Chengwen

RE: [PATCH v8 0/4] PCI Dev and SG copy support

2023-12-07 Thread Gowrishankar Muthukrishnan
Hi, Could this patch series be reviewed ? As of now, patches are rebased without any conflicts. Thanks, Gowrishankar > -Original Message- > From: Gowrishankar Muthukrishnan > Sent: Wednesday, November 22, 2023 4:36 PM > To: dev@dpdk.org > Cc: Anoob Joseph ; Cheng Jiang

RE: [EXTERNAL] Re: [v11 0/4] PCI Dev and SG copy support

2024-03-07 Thread Gowrishankar Muthukrishnan
Hi Thomas, > 29/02/2024 14:48, Gowrishankar Muthukrishnan: > > Improve dma-perf application to support PCI dev and SG copy, along > > with additional supports as below: > > - validate copied memory > > - skip tests if not opted. > > > > v11: > &g

RE: [EXTERNAL] Re: [v11 0/4] PCI Dev and SG copy support

2024-03-07 Thread Gowrishankar Muthukrishnan
set already exposes all configuration via config.ini. I didn't follow what is missing. For bi-direction, we can better continue discussing on that patch. Thanks, Gowrishankar > [1] [PATCH v2] app/dma-perf: support bi-directional transfer > > Thanks > > > > > Recheck-request: iol-unit-amd64-testing > > > > > > . > >

RE: [EXTERNAL] Re: [v11 0/4] PCI Dev and SG copy support

2024-03-12 Thread Gowrishankar Muthukrishnan
Hi Fengchengwen > > Hi Thomas, > > On 2024/3/12 17:15, Thomas Monjalon wrote: > > 07/03/2024 14:55, Gowrishankar Muthukrishnan: > >> Hi Fengchengwen, > >> > >>>> Waiting for a confirmation that this series is good to go. > >>> &g

RE: [EXTERNAL] Re: [v11 0/4] PCI Dev and SG copy support

2024-03-13 Thread Gowrishankar Muthukrishnan
Hi Fengchengwen > Hi Gowrishankar, > > On 2024/3/12 20:24, Gowrishankar Muthukrishnan wrote: > > Hi Fengchengwen > > > >> > >> Hi Thomas, > >> > >> On 2024/3/12 17:15, Thomas Monjalon wrote: > >>> 07/03/2024 14:55, Gowrishankar

RE: [EXTERNAL] Re: [v11 0/4] PCI Dev and SG copy support

2024-03-15 Thread Gowrishankar Muthukrishnan
Hi Thomas, > > Hi Fengchengwen > > > Hi Gowrishankar, > > > > On 2024/3/12 20:24, Gowrishankar Muthukrishnan wrote: > > > Hi Fengchengwen > > > > > >> > > >> Hi Thomas, > > >> > > >> On 2024/3/12 17

RE: [EXTERNAL] Re: [v11 0/4] PCI Dev and SG copy support

2024-03-18 Thread Gowrishankar Muthukrishnan
Hi Thomas and Fengchengwen, > > 13/03/2024 09:22, Gowrishankar Muthukrishnan: > > Hi Fengchengwen > > > > > Hi Gowrishankar, > > > > > > On 2024/3/12 20:24, Gowrishankar Muthukrishnan wrote: > > > > Hi Fengchengwen > > > > >

[PATCH] examples/fips_validation: fix digest in non JSON SHA MCT

2023-03-24 Thread Gowrishankar Muthukrishnan
mples/fips_validation: add SHA3 validation") Signed-off-by: Gowrishankar Muthukrishnan --- .../fips_validation/fips_validation_sha.c | 31 ++- examples/fips_validation/main.c | 53 +-- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git

RE: [EXT] [PATCH] vhost: add device op to offload the interrupt kick

2023-03-27 Thread Gowrishankar Muthukrishnan
Hi Eelco, > +void > +rte_vhost_notify_guest(int vid, uint16_t queue_id) { > + struct virtio_net *dev = get_device(vid); > + struct vhost_virtqueue *vq; > + > + if (!dev || queue_id >= VHOST_MAX_VRING) > + return; > + > + vq = dev->virtqueue[queue_id]; > + if (!vq)

[PATCH] maintainers: update for FIPS validation

2023-03-29 Thread Gowrishankar Muthukrishnan
Add co-maintainer for FIPS validation example. Signed-off-by: Gowrishankar Muthukrishnan --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 280058adfc..8df23e5099 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1809,6 +1809,7 @@ F: doc/guides

RE: [PATCH v3 1/3] cryptodev: add SM2 asymmetric crypto algorithm

2023-06-06 Thread Gowrishankar Muthukrishnan
> Acked-by: Arek Kusztal > > Some things will need to be changed before the next release (few of them I > described below), but I will ack it. Especially that other algorithms have > similar > issues. > Sure. I also thought any improvements can collectively addressed as it is another EC. > >

[PATCH v4 0/3] SM2 crypto algorithm support

2023-06-08 Thread Gowrishankar Muthukrishnan
This patch series adds SM2 crypto algorithm support, along with tests verified using Openssl. v4: - minor correction in comments Gowrishankar Muthukrishnan (3): cryptodev: add SM2 asymmetric crypto algorithm test/crypto: add asymmetric SM2 test cases crypto/openssl: add SM2 asymmetric

[PATCH v4 1/3] cryptodev: add SM2 asymmetric crypto algorithm

2023-06-08 Thread Gowrishankar Muthukrishnan
ShangMi 2 (SM2) is set of public-key cryptography algorithms based on elliptic curves. Added support for asymmetric SM2 in cryptodev along with prime field curve, as referenced in RFC: https://datatracker.ietf.org/doc/html/draft-shen-sm2-ecdsa-02 Signed-off-by: Gowrishankar Muthukrishnan

[PATCH v4 2/3] test/crypto: add asymmetric SM2 test cases

2023-06-08 Thread Gowrishankar Muthukrishnan
Added test cases for asymmetric SM2 crypto validation. Test cases are added for sign/verify/encrypt/decrypt. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_cryptodev_asym.c | 581 + app/test/test_cryptodev_sm2_test_vectors.h | 129 + 2 files

[PATCH v4 3/3] crypto/openssl: add SM2 asymmetric crypto support

2023-06-08 Thread Gowrishankar Muthukrishnan
Add SM2 asymmetric algorithm support in openssl PMD. Signed-off-by: Gowrishankar Muthukrishnan --- doc/guides/cryptodevs/features/openssl.ini | 1 + doc/guides/cryptodevs/openssl.rst| 1 + doc/guides/rel_notes/release_23_07.rst | 4 + drivers/crypto/openssl

RE: [EXT] [PATCH 1/4] examples/fips_validation: fix external build

2023-06-13 Thread Gowrishankar Muthukrishnan
Acked-by: Gowrishankar Muthukrishnan Thanks. > -Original Message- > From: David Marchand > Sent: Tuesday, June 13, 2023 1:48 PM > To: dev@dpdk.org > Cc: tho...@monjalon.net; bruce.richard...@intel.com; sta...@dpdk.org; > Brian Dooley ; Gowrishankar Muthukrishnan

RE: [EXT] [PATCH] crypto/openssl: fix SM2 for older openssl version

2023-06-15 Thread Gowrishankar Muthukrishnan
Acked-by: Gowrishankar Muthukrishnan Thanks, Gowrishankar > -Original Message- > From: Ciara Power > Sent: Thursday, June 15, 2023 1:33 PM > To: dev@dpdk.org > Cc: Ciara Power ; Gowrishankar Muthukrishnan > ; Kai Ji > Subject: [EXT] [PATCH] crypto/openssl: fix

RE: [EXT] [dpdk-dev v2 1/3] app/test: add diffie-hellman test cases

2023-06-23 Thread Gowrishankar Muthukrishnan
> diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c > index 5b16dcab56..b9034b637a 100644 > --- a/app/test/test_cryptodev_asym.c > +++ b/app/test/test_cryptodev_asym.c > @@ -64,6 +64,39 @@ static uint32_t test_index; > > static struct crypto_testsuite_params_asym testsu

RE: [EXT] [PATCH v4 0/3] Replace obsolote test cases.

2023-07-03 Thread Gowrishankar Muthukrishnan
Series verified with openssl pmd. Acked-by: Gowrishankar Muthukrishnan Thanks.

RE: [PATCH v1] examples/fips_validation: fix digest length in AES GCM

2023-07-03 Thread Gowrishankar Muthukrishnan
Acked-by: Gowrishankar Muthukrishnan

RE: [EXT] [PATCH] test/cryptodev: remove unnecessary null check before free

2023-07-10 Thread Gowrishankar Muthukrishnan
Acked-by: Gowrishankar Muthukrishnan

[PATCH] crypto/openssl: fix segfault due to uninitialized var

2023-07-11 Thread Gowrishankar Muthukrishnan
In some openSSL 3 libraries, uninitialized output variable cause segfault. It is always nice to initialize it. Fixes: 3b7d638fb11f ("crypto/openssl: support asymmetric SM2") Bugzilla ID: 1250 Signed-off-by: Gowrishankar Muthukrishnan --- drivers/crypto/openssl/rte_openssl_pmd.c | 2

[PATCH] crypto/openssl: check for SM2 support in openssl 3.x lib

2023-07-11 Thread Gowrishankar Muthukrishnan
In some version of openSSL 3 lib (for an instance, in linux distribution), if SM2 is not supported, driver should return error. Fixes: 3b7d638fb11f ("crypto/openssl: support asymmetric SM2") Bugzilla ID: 1250 Signed-off-by: Gowrishankar Muthukrishnan --- drivers/cryp

[v1] examples/fips_validation: fix SHA MCT test from segfault

2022-09-16 Thread Gowrishankar Muthukrishnan
In case of FIPS 140-2 format of test vectors in MCT test, msg is not given in the test vector, hence pt will be NULL which test function has to handle correctly. Fixes: d5c247145c2c ("examples/fips_validation: add parsing for SHA") Signed-off-by: Gowrishankar Muthukrishnan ---

RE: [EXT] [PATCH v3] examples/fips_validation: add parsing for AES GMAC

2022-09-16 Thread Gowrishankar Muthukrishnan
Tested with FIPS test vectors from NIST. Acked-by: Gowrishankar Muthukrishnan Thanks, Gowrishankar > -Original Message- > From: Brian Dooley > Sent: Friday, September 16, 2022 2:30 PM > To: Fan Zhang ; Brian Dooley > > Cc: dev@dpdk.org; Gowrishankar Muthukrishn

<    1   2   3   4   5   6   7   8   9   >