[PATCH v2] examples/ipsec-secgw: fix of socket id default value

2023-07-06 Thread Kai Ji
Due to recent changes to the default device socket ID, before being used as an index for session mempool list, set socket ID to 0 if unknown (-1). Fixes: 7dcd73e37965 ("drivers/bus: set device NUMA node to unknown by default") Cc: olivier.m...@6wind.com Cc: sta...@dpdk.org Signed-off-

[dpdk-dev v1] examples/ipsec-secgw: fix of socket id default value

2023-07-05 Thread Kai Ji
Due to recent changes to the default device socket ID, before being used as an index for session mempool list, set socket ID to 0 if unknown (-1). Fixes: 7dcd73e37965 ("drivers/bus: set device NUMA node to unknown by default") Cc: olivier.m...@6wind.com Cc: sta...@dpdk.org Signed-off-

[dpdk-dev v2 3/3] app/test: add ecdsa kat sessionless tests

2023-03-14 Thread Kai Ji
From: Arkadiusz Kusztal Added sessionless ECDSA known answer test cases to QAT asym crypto testsuite. Signed-off-by: Arkadiusz Kusztal Signed-off-by: Kai Ji --- app/test/test_cryptodev_asym.c | 209 + 1 file changed, 209 insertions(+) diff --git a/app/test

[dpdk-dev v2 2/3] app/test: add ecdh test cases

2023-03-14 Thread Kai Ji
From: Arkadiusz Kusztal Added Elliptic-Curve Diffie Hellman test cases. Signed-off-by: Arkadiusz Kusztal Signed-off-by: Kai Ji --- app/test/test_cryptodev_asym.c | 366 app/test/test_cryptodev_ecdh_test_vectors.h | 144 2 files changed, 510

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

2023-03-14 Thread Kai Ji
From: Arkadiusz Kusztal Added Diffie-Hellman tests. This tests adding possibility to check correctness of particular DH phases, which is not possible with current tests cases. Signed-off-by: Arkadiusz Kusztal Signed-off-by: Kai Ji --- app/test/test_cryptodev_asym.c| 264

[dpdk-dev v2 0/3] app/test: add asymmetric test cases

2023-03-14 Thread Kai Ji
This patch add in the new DH, ECDH and ECDSA asymc test cases. Arkadiusz Kusztal (3): app/test: add diffie-hellman test cases app/test: add ecdh test cases app/test: add ecdsa kat sessionless tests app/test/test_cryptodev_asym.c | 839 app/test/test_crypto

[dpdk-dev v1 2/2] app/test: add ecdh test cases

2023-03-13 Thread Kai Ji
From: Arkadiusz Kusztal Added Elliptic-Curve Diffie Hellman test cases. Signed-off-by: Arkadiusz Kusztal Signed-off-by: Kai Ji --- app/test/test_cryptodev_asym.c | 356 app/test/test_cryptodev_ecdh_test_vectors.h | 144 2 files changed, 500

[dpdk-dev v1 1/2] app/test: add diffie-hellman test cases

2023-03-13 Thread Kai Ji
From: Arkadiusz Kusztal Added Diffie-Hellman tests. This tests adding possibility to check correctness of particular DH phases, which is not possible with current tests cases. Signed-off-by: Arkadiusz Kusztal Signed-off-by: Kai Ji --- app/test/test_cryptodev_asym.c| 262

[dpdk-dev v1] crypto/openssl: fix of ASAN heap-use-after-free

2023-03-08 Thread Kai Ji
fix of ASAN report on heap-use-after-free error on tmp buffer. Fixes: d7bd42f6db19 ("crypto/openssl: update RSA routine with 3.0 EVP API") Cc: kai...@intel.com Signed-off-by: Kai Ji --- drivers/crypto/openssl/rte_openssl_pmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[dpdk-dev v7] doc: support IPsec Multi-buffer lib v1.3

2022-11-21 Thread Kai Ji
From: Pablo de Lara Updated AESNI MB and AESNI GCM, KASUMI, ZUC, SNOW3G and CHACHA20_POLY1305 PMD documentation guides with information about the latest Intel IPSec Multi-buffer library supported. Signed-off-by: Pablo de Lara Acked-by: Ciara Power Acked-by: Brian Dooley Signed-off-by: Kai Ji

[dpdk-dev v6] doc: support IPsec Multi-buffer lib v1.3

2022-11-17 Thread Kai Ji
From: Pablo de Lara Updated AESNI MB and AESNI GCM, KASUMI, ZUC, SNOW3G and CHACHA20_POLY1305 PMD documentation guides with information about the latest Intel IPSec Multi-buffer library supported. Signed-off-by: Pablo de Lara Acked-by: Ciara Power Acked-by: Brian Dooley Signed-off-by: Kai Ji

[dpdk-dev v6] doc: support IPsec Multi-buffer lib v1.3

2022-11-16 Thread Kai Ji
From: Pablo de Lara Updated AESNI MB and AESNI GCM, KASUMI, ZUC, SNOW3G and CHACHA20_POLY1305 PMD documentation guides with information about the latest Intel IPSec Multi-buffer library supported. Signed-off-by: Pablo de Lara Acked-by: Ciara Power Acked-by: Brian Dooley Signed-off-by: Kai Ji

[dpdk-dev v5] doc: support IPsec Multi-buffer lib v1.3

2022-11-15 Thread Kai Ji
From: Pablo de Lara Updated AESNI MB and AESNI GCM, KASUMI, ZUC, SNOW3G and CHACHA20_POLY1305 PMD documentation guides with information about the latest Intel IPSec Multi-buffer library supported. Signed-off-by: Pablo de Lara Acked-by: Ciara Power Acked-by: Brian Dooley Signed-off-by: Kai Ji

[dpdk-dev v2] app/test: fix of bitwise and operator in return

2022-11-11 Thread Kai Ji
This patch remove incorrect bitwise and operator used in the return function of sw snow3g testcase Fixes: 24342ade2c9d ("test/crypto: check SNOW3G when digest is encrypted") Cc: lukaszx.krakow...@intel.com Signed-off-by: Kai Ji --- app/test/test_cryptodev.c | 6 -- 1 file

[dpdk-dev v1] app/test: fix of bitwise and operator in return

2022-11-11 Thread Kai Ji
This patch remove incorrect bitwise and operator used in the return function of sw snow3g testcase Signed-off-by: Kai Ji --- app/test/test_cryptodev.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index e1122fcd7c

[dpdk-dev v1] crypto/ipsec_mb: handle mp request register error

2022-11-02 Thread Kai Ji
This patch fix the EXIST error handling when calling rte_mp_action_register(). Signed-off-by: Kai Ji --- drivers/crypto/ipsec_mb/ipsec_mb_private.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/ipsec_mb/ipsec_mb_private.c b/drivers/crypto

[dpdk-dev v1] crypto/ipsec_mb: fix of qp NULL check

2022-11-01 Thread Kai Ji
This patch fix the NULL pointer check when dereference qp and ring lookup. Coverity issue: 381625 Fixes: c75542ae4200 ("crypto/ipsec_mb: introduce IPsec_mb framework") Cc: roy.fan.zh...@intel.com Signed-off-by: Kai Ji --- drivers/crypto/ipsec_mb/ipsec_mb_ops.c | 5 +++-- 1 file

[dpdk-dev v5] crypto/ipsec_mb: multi-process IPC request handler

2022-10-26 Thread Kai Ji
rovide the ownership of the queue-pair so that only the PID matched queue-pair can be free'd in the request. Signed-off-by: Kai Ji Acked-by: Arek Kusztal Acked-by: Pablo de Lara --- v5: - minor updates and typo fix v4: - review comments resolved v3: - remove shared memzone as qp_conf param

[dpdk-dev v4] crypto/ipsec_mb: multi-process IPC request handler

2022-10-26 Thread Kai Ji
rovide the ownership of the queue-pair so that only the PID matched queue-pair can be free'd in the request. Signed-off-by: Kai Ji Acked-by: Arek Kusztal --- v4: - review comments resolved v3: - remove shared memzone as qp_conf params can be passed directly from ipc message. v2: - add in sha

[dpdk-dev v4] crypto/ipsec_mb: multi-process IPC request handler

2022-10-26 Thread Kai Ji
nership of the queue-pair so that only the PID matched queue-pair can be free'd in the request. Signed-off-by: Kai Ji --- v4: - review comments resolved v3: - remove shared memzone as qp_conf params can be passed directly from ipc message. v2: - add in shared memzone for data exchang

[dpdk-dev v4] crypto/ipsec_mb: multi-process IPC request handler

2022-10-26 Thread Kai Ji
nership of the queue-pair so that only the PID matched queue-pair can be free'd in the request. Signed-off-by: Kai Ji --- drivers/crypto/ipsec_mb/ipsec_mb_ops.c | 129 - drivers/crypto/ipsec_mb/ipsec_mb_private.c | 24 +++- drivers/crypto/ipsec_mb/ipsec_mb_private.h

[dpdk-dev v4] crypto/ipsec_mb: multi-process IPC request handler

2022-10-26 Thread Kai Ji
nership of the queue-pair so that only the PID matched queue-pair can be free'd in the request. Signed-off-by: Kai Ji --- v4: - review comments resolved v3: - remove shared memzone as qp_conf params can be passed directly from ipc message. v2: - add in shared memzone for data exchang

[dpdk-dev v3] crypto/ipsec_mb: multi-process IPC request handler

2022-10-25 Thread Kai Ji
ownership of the queue-pair so that only the PID matched queue-pair can be free'd in the request. Signed-off-by: Kai Ji --- v3: - remove shared memzone as qp_conf params can be passed directly from ipc message. v2: - add in shared memzone for data exchange between multi-process ---

[dpdk-dev v2] crypto/ipsec_mb: multi-process IPC request handler

2022-10-24 Thread Kai Ji
ownership of the queue-pair so that only the PID matched queue-pair can be free'd in the request. Signed-off-by: Kai Ji --- v2: - add in share memzone for data exchange between multi-process --- drivers/crypto/ipsec_mb/ipsec_mb_ops.c | 135 - drivers/

[dpdk-dev v1] crypto/ipsec_mb: multi-process IPC request handler

2022-10-20 Thread Kai Ji
ownership of the queue-pair so that only the PID matched queue-pair can be free'd in the request. Signed-off-by: Kai Ji --- drivers/crypto/ipsec_mb/ipsec_mb_ops.c | 69 ++ drivers/crypto/ipsec_mb/ipsec_mb_private.c | 22 ++- drivers/crypto/ipsec_mb/ipsec_mb

[dpdk-dev v5] lib/cryptodev: multi-process IPC request handler

2022-10-06 Thread Kai Ji
via IPC messages during the runtime. After setup, a new "qp_in_used_pid" param stores the PID to provide the ownership of the queue-pair so that only the PID matched queue-pair free request is allowed in the future. Signed-off-by: Kai Ji Acked-by: Ciara Power --- v5: - fix of unit

[dpdk-dev v4] lib/cryptodev: multi-process IPC request handler

2022-10-06 Thread Kai Ji
via IPC messages during the runtime. After setup, a new "qp_in_used_pid" param stores the PID to provide the ownership of the queue-pair so that only the PID matched queue-pair free request is allowed in the future. Signed-off-by: Kai Ji --- v4: - release note update - Doxygen comments

[dpdk-dev v1] crypto/qat: fix of qat build request session in mp

2022-10-04 Thread Kai Ji
This patch fix the session pointer passed in set_session() when ctx has NULL build request pointer in multi-processes scenario. Fixes: fb3b9f492205 ("crypto/qat: rework burst data path") Cc: sta...@dpdk.org Signed-off-by: Kai Ji --- drivers/crypto/qat/qat_sym.c | 2 +- 1 file

[dpdk-dev v3 1/1] lib/cryptodev: multi-process IPC request handler

2022-10-02 Thread Kai Ji
This patch add a function to support queue-pair configuration request to allow the primary or secondary process to setup/free the queue-pair via IPC handler. Add in queue pair in-used by process id array in rte_cryptodev_data for pid tracking. Signed-off-by: Kai Ji --- v3: - addin missing free

[dpdk-dev v2] lib/cryptodev: multi-process IPC request handler

2022-10-01 Thread Kai Ji
This patch add a function to support queue-pair configuration request to allow the primary or secondary process to setup/free the queue-pair via IPC handler. Signed-off-by: Kai Ji --- lib/cryptodev/cryptodev_pmd.h | 3 +- lib/cryptodev/rte_cryptodev.c | 89

[dpdk-dev v2] crypto/openssl: fix HMAC output length

2022-08-31 Thread Kai Ji
This patch sets the max length of dst in OpenSSL 3.0 lib EVP MAC final routine to ensure enough space for the result. Fixes: 75adf1eae44f ("crypto/openssl: update HMAC routine with 3.0 EVP API") Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/crypto/openssl/rte_openssl_pmd.c

[dpdk-dev v1] lib/cryptodev: multi-process IPC request handler

2022-07-26 Thread Kai Ji
This patch add in multi-process IPC request handler function in rte cryptodev. This function intend to support a queue-pair configuration request to allow the secondary process to reconfigure the queue-pair setup'ed by the primary process. Signed-off-by: Kai Ji --- lib/cryptodev/rte_crypto

[dpdk-dev v2] Crypto/qat: fix build with OpenSSL 1.1

2022-07-26 Thread Kai Ji
This patch add in libcrypto version check before enable libipsec-mb for QAT. The inter-ipsec-mb lib for partial hash and AES calculation should only be enabled when both OpensSSL 3.0 and IPSec_MB 1.2.0 are installed on the system. Signed-off-by: Kai Ji --- drivers/common/qat/meson.build | 4

[dpdk-dev v2] crypto/qat: add in libcrypto version check

2022-07-26 Thread Kai Ji
This patch add in libcrypto version check before enable libipsec-mb for QAT. The inter-ipsec-mb lib for partial hash and AES calculation should only be enabled when both OpensSSL 3.0 and IPSec_MB 1.2.0 are installed on the system. Signed-off-by: Kai Ji --- drivers/common/qat/meson.build | 4

[dpdk-dev v1] crypto/qat: add in libcrypto version check

2022-07-26 Thread Kai Ji
This patch add in libcrypto version check before enable libipsec-mb for QAT. The inter-ipsec-mb lib for partial hash and AES cacluation should only be enabled when both OpensSSL 3.0 and IPSec_MB 1.2.0 are installed on the system. Signed-off-by: Kai Ji --- drivers/common/qat/meson.build | 4

[dpdk-dev v1] crypto/qat: Enable OpenSSL legacy provider in session

2022-07-11 Thread Kai Ji
h and AES") Signed-off-by: Kai Ji --- drivers/crypto/qat/qat_sym_session.c | 53 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/drivers/crypto/qat/qat_sym_session.c b/drivers/crypto/qat/qat_sym_session.c index b30396487e..42164cc6c6 100644 ---

[dpdk-dev v1] crypto/openssl: fix of dstlen passed in HMAC

2022-07-11 Thread Kai Ji
This fix of dstlen passed in OpenSSL 3.0 lib EVP MAC final routine. Fixes: 75adf1eae44f ("crypto/openssl: update HMAC routine with 3.0 EVP API") Signed-off-by: Kai Ji --- drivers/crypto/openssl/rte_openssl_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

[dpdk-dev v2] crypto/qat: fix secure session check

2022-07-05 Thread Kai Ji
y: Rebecca Troy Signed-off-by: Kai Ji --- drivers/crypto/qat/qat_sym.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/qat/qat_sym.c b/drivers/crypto/qat/qat_sym.c index 3477cd89ad..db6316fbe9 100644 --- a/drivers/crypto/qat/qat_sym.c +++ b/d

[dpdk-dev v2] crypto/openssl: EVP_PKEY routine update in rsa op

2022-07-05 Thread Kai Ji
enssl: update RSA routine with 3.0 EVP API") Signed-off-by: Kai Ji --- drivers/crypto/openssl/rte_openssl_pmd.c | 32 ++-- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 2 -- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/drivers/crypto/openssl/rte_openss

[dpdk-dev v1] crypto/openssl: EVP_PKEY routine update in rsa op

2022-06-30 Thread Kai Ji
ned-off-by: Kai Ji --- drivers/crypto/openssl/rte_openssl_pmd.c | 32 ++-- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 2 -- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/openssl/rte_openssl_p

[dpdk-dev v5 4/4] crypto/openssl: update on DSA routine with 3.0 EVP API

2022-06-21 Thread Kai Ji
This patch updates asymmetric DSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Divide the single combined dsa sign test to two individual dsa sign and dsa verfiy tests. Signed-off-by: Kai Ji --- app/test/test_cryptodev_asym.c | 90 -- doc/guides/rel_notes

[dpdk-dev v5 3/4] crypto/openssl: update on DH routine with 3.0 EVP API

2022-06-21 Thread Kai Ji
This patch updates asymmetric DH routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 4 + drivers/crypto/openssl/rte_openssl_pmd.c | 185 +++ drivers/crypto/openssl/rte_openssl_pmd_ops.c

[dpdk-dev v5 2/4] crypto/openssl: update on RSA routine with 3.0 EVP API

2022-06-21 Thread Kai Ji
This patch updates asymmetric RSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 7 + drivers/crypto/openssl/rte_openssl_pmd.c | 149 +++ drivers/crypto/openssl/rte_openssl_pmd_ops.c

[dpdk-dev v5 1/4] crypto/openssl: update on HMAC routine with 3.0 EVP API

2022-06-21 Thread Kai Ji
This patch update the symmetric HMAC routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 4 + drivers/crypto/openssl/rte_openssl_pmd.c | 187 ++- 2 files changed, 181 insertions(+), 10

[dpdk-dev v5 0/4] crypto/openssl: EVP api update for 3.0 lib

2022-06-21 Thread Kai Ji
This patch set update openssl pmd deprecated APIs to EVP APIs where supported in openssl 3.0 lib --- v5: - review comments fix and release notes update v4: - compilation issue fix v3: - rebase to 22.07 rc1 v2: - addin DSA routine --- Kai Ji (4): crypto/openssl: update on HMAC routine with

[dpdk-dev v5 4/4] crypto/openssl: update on DSA routine with 3.0 EVP API

2022-06-21 Thread Kai Ji
This patch updates asymmetric DSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Divide the single combined dsa sign test to two individual dsa sign and dsa verfiy tests. Signed-off-by: Kai Ji --- app/test/test_cryptodev_asym.c | 90 -- doc/guides/rel_notes

[dpdk-dev v5 3/4] crypto/openssl: update on DH routine with 3.0 EVP API

2022-06-21 Thread Kai Ji
This patch updates asymmetric DH routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 4 + drivers/crypto/openssl/rte_openssl_pmd.c | 185 +++ drivers/crypto/openssl/rte_openssl_pmd_ops.c

[dpdk-dev v5 2/4] crypto/openssl: update on RSA routine with 3.0 EVP API

2022-06-21 Thread Kai Ji
This patch updates asymmetric RSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 7 + drivers/crypto/openssl/rte_openssl_pmd.c | 149 +++ drivers/crypto/openssl/rte_openssl_pmd_ops.c

[dpdk-dev v5 1/4] crypto/openssl: update on HMAC routine with 3.0 EVP API

2022-06-21 Thread Kai Ji
This patch update the symmetric HMAC routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 4 + drivers/crypto/openssl/rte_openssl_pmd.c | 187 ++- 2 files changed, 181 insertions(+), 10

[dpdk-dev v5 0/4] crypto/openssl: EVP api update for 3.0 lib

2022-06-21 Thread Kai Ji
This patch set update openssl pmd deprecated APIs to EVP APIs where supported in openssl 3.0 lib --- v5: - review comments fix and release notes update v4: - compilation issue fix v3: - rebase to 22.07 rc1 v2: - addin DSA routine --- Kai Ji (4): crypto/openssl: update on HMAC routine with

[dpdk-dev v4 4/4] crypto/openssl: 3.0 EVP update on DSA routine

2022-06-14 Thread Kai Ji
This patch updates asymmetric DSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Divide the single combined dsa sign test to two individual dsa sign and dsa verfiy tests. Signed-off-by: Kai Ji --- app/test/test_cryptodev_asym.c | 90 -- drivers/crypto

[dpdk-dev v4 3/4] crypto/openssl: 3.0 EVP update on DH routine

2022-06-14 Thread Kai Ji
This patch updates asymmetric DH routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 4 + drivers/crypto/openssl/rte_openssl_pmd.c | 185 +++ drivers/crypto/openssl/rte_openssl_pmd_ops.c

[dpdk-dev v4 2/4] crypto/openssl: 3.0 EVP update on RSA routine

2022-06-14 Thread Kai Ji
This patch updates asymmetric RSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 7 + drivers/crypto/openssl/rte_openssl_pmd.c | 149 +++ drivers/crypto/openssl/rte_openssl_pmd_ops.c

[dpdk-dev v4 1/4] crypto/openssl: 3.0 EVP update on HMAC routine

2022-06-14 Thread Kai Ji
This patch update the symmetric HMAC routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 4 + drivers/crypto/openssl/rte_openssl_pmd.c | 187 ++- 2 files changed, 181 insertions(+), 10

[dpdk-dev v4 0/4] crypto/openssl: EVP api update for 3.0 lib

2022-06-14 Thread Kai Ji
This patch set update openssl pmd deprecated APIs to EVP APIs where supported in openssl 3.0 lib --- v4: - compilation issue fix v3: - rebase to 22.07 rc1 v2: - addin DSA routine --- Kai Ji (4): crypto/openssl: 3.0 EVP update on HMAC routine crypto/openssl: 3.0 EVP update on RSA routine

[dpdk-dev v7] crypto/qat: use intel-ipsec-mb for partial hash & aes

2022-06-13 Thread Kai Ji
Since openssl 3.0 now deprecates the low level API QAT required to perform partial hash & aes operation when creating the session. This patch add in qat_ipsec_mb_lib driver parameter to allow QAT PMD to switch APIs between openssl and intel ipsec-mb library. Signed-off-by: Kai Ji Signed-of

[dpdk-dev v3 4/4] crypto/openssl: 3.0 EVP update on DSA routine

2022-06-13 Thread Kai Ji
This patch updates asymmetric DSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Divide the single combined dsa sign test to two indiviual dsa sign and dsa verfiy tests. Signed-off-by: Kai Ji --- app/test/test_cryptodev_asym.c | 90 -- drivers/crypto/openssl

[dpdk-dev v3 2/4] crypto/openssl: 3.0 EVP update on RSA routine

2022-06-13 Thread Kai Ji
This patch updates asymmetric RSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 7 + drivers/crypto/openssl/rte_openssl_pmd.c | 149 +++ drivers/crypto/openssl/rte_openssl_pmd_ops.c

[dpdk-dev v3 3/4] crypto/openssl: 3.0 EVP update on DH routine

2022-06-13 Thread Kai Ji
This patch updates asymmetric DH routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 4 + drivers/crypto/openssl/rte_openssl_pmd.c | 185 +++ drivers/crypto/openssl/rte_openssl_pmd_ops.c

[dpdk-dev v3 1/4] crypto/openssl: 3.0 EVP update on HMAC routine

2022-06-13 Thread Kai Ji
This patch update the symmetric HMAC routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 4 + drivers/crypto/openssl/rte_openssl_pmd.c | 187 ++- 2 files changed, 181 insertions(+), 10

[dpdk-dev v3 0/4] crypto/openssl: EVP api update for 3.0 lib

2022-06-13 Thread Kai Ji
This patch set update openssl pmd deprecated APIs to EVP APIs where supported in openssl 3.0 lib --- v3: - rebase to 22.07 rc1 v2: - addin DSA routine Kai Ji (4): crypto/openssl: 3.0 EVP update on HMAC routine crypto/openssl: 3.0 EVP update on RSA routine crypto/openssl: 3.0 EVP update on

[dpdk-dev v1] doc/multi-process: fixed grammar and rephrasing

2022-06-01 Thread Kai Ji
Update and rephrasing some sentences, small improvements made to the multi-process sample application user guide Fixes: d0dff9ba445e ("doc: sample application user guide") Cc: bernard.iremon...@intel.com Signed-off-by: Kai Ji --- doc/guides/sample_app_ug/multi_proces

[dpdk-dev v6] crypto/qat: use intel-ipsec-mb for partial hash & aes

2022-05-30 Thread Kai Ji
Since openssl 3.0 now deprecates the low level API QAT required to perform partial hash & aes operation when creating the session. This patch add in qat_ipsec_mb_lib driver parameter to allow QAT PMD to switch APIs between openssl and intel ipsec-mb library. Signed-off-by: Kai Ji Signed-of

[dpdk-dev v5] crypto/qat: use intel-ipsec-mb for partial hash & aes

2022-05-27 Thread Kai Ji
Since openssl 3.0 now deprecates the low level API QAT required to perform partial hash & aes operation when creating the session. This patch add in qat_ipsec_mb_lib driver parameter to allow QAT PMD to switch APIs between openssl and intel ipsec-mb library. Signed-off-by: Kai Ji Signed-of

[dpdk-dev v4] crypto/qat: use intel-ipsec-mb for partial hash & aes

2022-05-26 Thread Kai Ji
Since openssl 3.0 now deprecates the low level API QAT required to perform partial hash & aes operation when creating the session. This patch add in qat_ipsec_mb_lib driver parameter to allow QAT PMD to switch APIs between openssl and intel ipsec-mb library. Signed-off-by: Kai Ji Signed-of

[dpdk-dev v3] crypto/qat: use intel-ipsec-mb for partial hash & aes

2022-05-25 Thread Kai Ji
Since openssl 3.0 now deprecates the low level API QAT required to perform partial hash & aes operation when creating the session. This patch add in qat_ipsec_mb_lib driver parameter to allow QAT PMD to switch APIs between openssl and intel ipsec-mb library. Signed-off-by: Kai Ji Signed-of

[dpdk-dev v2 2/2] crypto/qat: use intel-ipsec-mb for partial hash & aes

2022-05-17 Thread Kai Ji
Since openssl 3.0 now deprecates the low level API QAT required to perform partial hash & aes operation when creating the session. This patch is to transfer such dependency from openssl to intel-ipsec-mb. Signed-off-by: Kai Ji Signed-off-by: Fan Zhang --- drivers/crypto/qat/qat_sym_sessi

[dpdk-dev v2 1/2] build: add in option for qat use intel ipsec-mb lib

2022-05-17 Thread Kai Ji
Add in build option for QAT pmd use intel ipsec-mb lib instead openssl for precompute partial hash & aes. Signed-off-by: Kai Ji --- drivers/common/qat/meson.build | 12 meson_options.txt | 2 ++ 2 files changed, 14 insertions(+) diff --git a/drivers/common

[dpdk-dev v2 5/5] crypto/openssl: 3.0 EVP update on DSA routine

2022-05-16 Thread Kai Ji
This patch updates asymmetric DSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Divide the single combined dsa sign test to two indiviual dsa sign and dsa verfiy tests. Signed-off-by: Kai Ji --- app/test/test_cryptodev_asym.c | 91 -- drivers/crypto/openssl

[dpdk-dev v2 4/5] crypto/openssl: 3.0 EVP update on DH routine

2022-05-16 Thread Kai Ji
This patch updates asymmetric DH routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 4 + drivers/crypto/openssl/rte_openssl_pmd.c | 186 ++- drivers/crypto/openssl/rte_openssl_pmd_ops.c

[dpdk-dev v2 3/5] crypto/openssl: 3.0 EVP update on RSA routine

2022-05-16 Thread Kai Ji
This patch updates asymmetric RSA routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 7 + drivers/crypto/openssl/rte_openssl_pmd.c | 149 +++ drivers/crypto/openssl/rte_openssl_pmd_ops.c

[dpdk-dev v2 2/5] crypto/openssl: 3.0 EVP update on HMAC routine

2022-05-16 Thread Kai Ji
This patch update the symmetric HMAC routine in crypto openssl pmd to adopt openssl 3.0 EVP apis. Signed-off-by: Kai Ji --- drivers/crypto/openssl/openssl_pmd_private.h | 4 + drivers/crypto/openssl/rte_openssl_pmd.c | 187 ++- 2 files changed, 181 insertions(+), 10

[dpdk-dev v2 1/5] drivers/crypto: suppress openssl deprecated api warning messages

2022-05-16 Thread Kai Ji
Enable openssl_api_compat cflag to suppress deprecated api warning messages in crypto pmd drivers: ccp, openssl and qat. Signed-off-by: Kai Ji --- drivers/common/qat/meson.build | 1 + drivers/crypto/ccp/meson.build | 1 + drivers/crypto/openssl/meson.build | 1 + 3 files changed, 3

[dpdk-dev v2 0/5] crypto/openssl: EVP api update for 3.0 lib

2022-05-16 Thread Kai Ji
This patch set update openssl pmd deprecated APIs to EVP APIs where supported in openssl 3.0 lib. Depends-on: series-22684 ("cryptodev: move dh type from xform to dh op") Kai Ji (5): drivers/crypto: suppress openssl deprecated api warning messages crypto/openssl: 3.0 EVP upda

[dpdk-dev v1] crypto/openssl: openssl 3.0 support on asym crypto routine

2022-04-07 Thread Kai Ji
This patch update the asymmetric RSA and DH routine in crypto openssl pmd to adopt openssl 3.0 EVP library. Signed-off-by: Kai Ji --- drivers/crypto/openssl/compat.h | 43 ++- drivers/crypto/openssl/openssl_pmd_private.h | 11 + drivers/crypto/openssl/rte_openssl_pmd.c | 288

[dpdk-dev v2] crypto/qat: fix of offset and length assignment

2022-04-06 Thread Kai Ji
This patch fix the cipher & auth offset and length values when convert mbuf to vector chain for QAT build op. Fixes: a815a04cea05 ("crypto/qat: support symmetric build op request") Signed-off-by: Kai Ji --- drivers/crypto/qat/dev/qat_crypto_pmd_gens.h | 20 ++--

[dpdk-dev v1] crypto/qat: fix of cipher offset and length assignment

2022-03-25 Thread Kai Ji
This patch fix the cipher offset and length values when convert mbuf to vector chain for QAT build op. Fixes: a815a04cea05 ("crypto/qat: support symmetric build op request") Signed-off-by: Kai Ji --- drivers/crypto/qat/dev/qat_crypto_pmd_gens.h | 12 ++-- 1 file changed, 6

[dpdk-dev v2] crypto/qat: fix process type handling

2022-03-01 Thread Kai Ji
ned-off-by: Kai Ji --- drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 3 +++ drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 3 +++ drivers/crypto/qat/dev/qat_sym_pmd_gen1.c| 3 +++ drivers/crypto/qat/qat_sym.c | 8 4 files changed, 13 insertions(+), 4 deletions(-) di

[dpdk-dev] crypto/qat: fix process type handling

2022-02-28 Thread Kai Ji
This patch fix the process type handling in QAT PMDs where only primary and secondary process are supported in qat build request Signed-off-by: Kai Ji --- drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 3 +++ drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 3 +++ drivers/crypto/qat/dev

[dpdk-dev v6] crypto/openssl: openssl 3.0 support on sym crypto routine

2022-02-25 Thread Kai Ji
This patch setup OPENSSL_API_COMPAT to suppress deprecated compile warning messages in ccp, openssl and qat PMDs, also update the symmetric EVP routine in crypto openssl pmd to adopt openssl 3.0 library. Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/common/qat/meson.build

[dpdk-dev v12 9/9] crypto/qat: support out of place SG list

2022-02-22 Thread Kai Ji
This patch adds the SGL out of place support to QAT PMD Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 28 -- drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 14 - drivers/crypto/qat/dev/qat_sym_pmd_gen1.c| 55 +--- 3

[dpdk-dev v12 8/9] crypto/qat: unify raw data path functions

2022-02-22 Thread Kai Ji
This patch unifies QAT's raw dp api implementations to the same enqueue/dequeue methods used in crypto operations. The specific functions for different QAT generation are updated respectively. The qat_sym_hw_dp.c is removed as no longer required. Signed-off-by: Kai Ji Acked-by: Fan

[dpdk-dev v12 7/9] crypto/qat: rework burst data path

2022-02-22 Thread Kai Ji
This patch enable the op_build_request function in qat_enqueue_op_burst, and the qat_dequeue_process_response function in qat_dequeue_op_burst. The op_build_request invoked in crypto build request op is based on crypto operations setup'd during session init. Signed-off-by: Kai Ji Acked-by

[dpdk-dev v12 6/9] crypto/qat: unify asymmetric functions

2022-02-22 Thread Kai Ji
This patch removes qat_asym_pmd.c and integrates all the functions into qat_asym.c. The unified/integrated asym crypto pmd functions should make them easier to maintain. Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/common/qat/meson.build| 2 +- drivers/crypto/qat/qat_asym.c

[dpdk-dev v12 5/9] crypto/qat: unify symmetric functions

2022-02-22 Thread Kai Ji
This patch removes qat_sym_pmd.c and integrates all the functions into qat_sym.c. The unified/integrated qat sym crypto pmd functions should make them easier to maintain. Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/common/qat/meson.build | 4 +- drivers/common/qat

[dpdk-dev v12 4/9] crypto/qat: rework asymmetric op build operation

2022-02-22 Thread Kai Ji
This patch reworks the asymmetric crypto data path implementation in QAT driver. The changes include asymmetric crypto data path separation for QAT hardware generations, and code optimisation of the device capabilities declaration. Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/common

[dpdk-dev v12 3/9] crypto/qat: rework session functions

2022-02-22 Thread Kai Ji
This patch introduces a set of set_session methods to QAT generations. In addition, the reuse of QAT session between generations is prohibit as the support of min_qat_dev_gen_id' is removed. Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/crypto/qat/dev/qat_asym_pmd_gen1.c

[dpdk-dev v12 2/9] crypto/qat: support symmetric build op request

2022-02-22 Thread Kai Ji
This patch adds common inline functions for QAT symmetric crypto driver to process crypto op, and the implementation of build op request function for QAT generation 1. Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/crypto/qat/dev/qat_crypto_pmd_gens.h | 832 ++- drivers

[dpdk-dev v12 1/9] common/qat: define build request and dequeue ops

2022-02-22 Thread Kai Ji
This patch introduce build request and dequeue op function pointers to the qat queue pair implementation. The function poniters are assigned during qat session generation based on input crypto operation request. Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/common/qat/qat_qp.c

[dpdk-dev v12 0/9] drivers/qat: QAT symmetric crypto datapatch rework

2022-02-22 Thread Kai Ji
- rebase to the lastest for-main v5: - rebase to the latest for-main - patchset reconstruct v4: - patchset break down and reconstruct v3: - sperate a single patch 6 to two different patches v2: - review comments addressed Kai Ji (9): common/qat: define build request and dequeue ops crypto

[dpdk-dev v10 8/9] crypto/qat: unify raw data path functions

2022-02-22 Thread Kai Ji
This patch unifies QAT's raw dp api implementations to the same enqueue/dequeue methods used in crypto operations. The specific functions for different QAT generation are updated respectively. The qat_sym_hw_dp.c is removed as no longer required. Signed-off-by: Kai Ji --- drivers/commo

[dpdk-dev v10 9/9] crypto/qat: support out of place SG list

2022-02-22 Thread Kai Ji
This patch adds the SGL out of place support to QAT PMD Signed-off-by: Kai Ji --- drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 28 -- drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 14 - drivers/crypto/qat/dev/qat_sym_pmd_gen1.c| 55 +--- 3 files changed, 83

[dpdk-dev v10 7/9] crypto/qat: rework burst data path

2022-02-22 Thread Kai Ji
This patch enable the op_build_request function in qat_enqueue_op_burst, and the qat_dequeue_process_response function in qat_dequeue_op_burst. The op_build_request invoked in crypto build request op is based on crypto operations setup'd during session init. Signed-off-by: Kai Ji --- dr

[dpdk-dev v10 6/9] crypto/qat: unify asymmetric functions

2022-02-22 Thread Kai Ji
This patch removes qat_asym_pmd.c and integrates all the functions into qat_asym.c. The unified/integrated asym crypto pmd functions should make them easier to maintain. Signed-off-by: Kai Ji --- drivers/common/qat/meson.build| 2 +- drivers/crypto/qat/qat_asym.c | 180

[dpdk-dev v10 5/9] crypto/qat: unify symmetric functions

2022-02-22 Thread Kai Ji
This patch removes qat_sym_pmd.c and integrates all the functions into qat_sym.c. The unified/integrated qat sym crypto pmd functions should make them easier to maintain. Signed-off-by: Kai Ji --- drivers/common/qat/meson.build | 4 +- drivers/common/qat/qat_device.c | 4

[dpdk-dev v10 4/9] crypto/qat: rework asymmetric op build operation

2022-02-22 Thread Kai Ji
This patch reworks the asymmetric crypto data path implementation in QAT driver. The changes include asymmetric crypto data path separation for QAT hardware generations, and code optimisation of the device capabilities declaration. Signed-off-by: Kai Ji --- drivers/common/qat/qat_qp.c | 5

[dpdk-dev v10 3/9] crypto/qat: rework session functions

2022-02-22 Thread Kai Ji
This patch introduces a set of set_session methods to QAT generations. In addition, the reuse of QAT session between generations is prohibit as the support of min_qat_dev_gen_id' is removed. Signed-off-by: Kai Ji --- drivers/crypto/qat/dev/qat_asym_pmd_gen1.c | 9 +- drivers/crypto/qa

[dpdk-dev v10 2/9] crypto/qat: support symmetric build op request

2022-02-22 Thread Kai Ji
This patch adds common inline functions for QAT symmetric crypto driver to process crypto op, and the implementation of build op request function for QAT generation 1. Signed-off-by: Kai Ji --- drivers/crypto/qat/dev/qat_crypto_pmd_gens.h | 832 ++- drivers/crypto/qat/dev

[dpdk-dev v10 1/9] common/qat: define build request and dequeue ops

2022-02-22 Thread Kai Ji
This patch introduce build request and dequeue op function pointers to the qat queue pair implementation. The function poniters are assigned during qat session generation based on input crypto operation request. Signed-off-by: Kai Ji --- drivers/common/qat/qat_qp.c | 10 -- drivers

[dpdk-dev v10 0/9] drivers/qat: QAT symmetric crypto datapatch rework

2022-02-22 Thread Kai Ji
the latest for-main - patchset reconstruct v4: - patchset break down and reconstruct v3: - sperate a single patch 6 to two different patches v2: - review comments addressed Kai Ji (9): common/qat: define build request and dequeue ops crypto/qat: support symmetric build op request crypto

  1   2   3   >