[PATCH] cryptodev: fix sym session mempool creation description

2023-01-06 Thread Fan Zhang
After the session mempool creation API is changed, some description is no longer valid. This patch fixes the descriptions in both API comment and the programmer's guide. Fixes: bdce2564dbf7 ("cryptodev: rework session framework") Cc: gak...@marvell.com Signed-off-by: Fan Zhang

[PATCH] maintainers: update for crypto and compressdev

2022-11-08 Thread Fan Zhang
Update email address. Signed-off-by: Fan Zhang --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1c9922123e..536e82fd4d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -441,7 +441,7 @@ F: doc/guides/sample_app_ug/bbdev_app.rst

[PATCH] maintainers: update maintainer

2022-09-21 Thread Fan Zhang
Update maintainer and email address. Signed-off-by: Fan Zhang Signed-off-by: Kai ji --- MAINTAINERS | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 26d3a7077c..20eb277b35 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -445,7

[PATCH 3/3] cryptodev: hide sym session structure

2022-08-29 Thread Fan Zhang
. Signed-off-by: Fan Zhang Signed-off-by: Akhil Goyal --- app/test/test_ipsec_perf.c | 4 +- doc/guides/prog_guide/cryptodev_lib.rst | 16 ++ doc/guides/rel_notes/deprecation.rst| 9 doc/guides/rel_notes/release_22_11.rst | 7 +++ drivers/crypto

[PATCH 0/3] cryptodev: sym session framework rework

2022-08-29 Thread Fan Zhang
. With the change the session is no longer supported to be accessed by multiple device drivers. For the same reason rte_cryptodev_sym_session_init/clear APIs are deprecated as rte_cryptodev_sym_session_create/free will initialize and clear the driver specific data field. Fan Zhang (3): cryptodev

[PATCH 2/3] crypto/scheduler: use unified session

2022-08-29 Thread Fan Zhang
each cop based on the worker before enqueue, and retrieve the original session after dequeue). Signed-off-by: Fan Zhang --- app/test/test_cryptodev.c | 4 +- drivers/crypto/scheduler/scheduler_failover.c | 19 ++- .../crypto/scheduler/scheduler_multicore.c| 17

[PATCH v2] vhost/crypto: fix out of bound access

2022-07-08 Thread Fan Zhang
Coverity issue: 379211 Fixes: 4414bb67010d ("vhost/crypto: fix build with GCC 12") Cc: david.march...@redhat.com Signed-off-by: Fan Zhang --- v2: fix format-warning lib/vhost/vhost_crypto.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a

[PATCH] vhost/crypto: fix out of bound access

2022-07-08 Thread Fan Zhang
Coverity issue: 379211 Fixes: 4414bb67010d ("vhost/crypto: fix build with GCC 12") Cc: david.march...@redhat.com Signed-off-by: Fan Zhang --- lib/vhost/vhost_crypto.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/vhost/vhost_crypto.c b

[PATCH] vhost/crypto: fix failed compile

2022-05-19 Thread Fan Zhang
Fixes: 3c79609fda7c ("vhost/crypto: handle virtually non-contiguous buffers") Cc: roy.fan.zh...@intel.com This patch fixes the vhost crypto compile file on GCC12. Ref. https://bugs.dpdk.org/show_bug.cgi?id=1011 The fix involves replacing rte_memcpy to memcpy. Signed-off-by: Fan Zhang

[PATCH] crypto/qat: use intel-ipsec-mb for partial hash

2022-04-07 Thread Fan Zhang
Since openssl 3.0 now deprecates the low level API QAT required to perform partial hash operation when creating the session. This patch is to transfer such dependency from openssl to intel-ipsec-mb. Signed-off-by: Fan Zhang --- drivers/common/qat/meson.build | 10 +++ drivers/crypto/qat

[PATCH v11 9/9] crypto/qat: support out of place SG list

2022-02-22 Thread Fan Zhang
From: 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

[PATCH v11 8/9] crypto/qat: unify raw data path functions

2022-02-22 Thread Fan Zhang
ed-by: Fan Zhang --- drivers/common/qat/meson.build | 2 +- drivers/compress/qat/qat_comp_pmd.c | 12 +- drivers/crypto/qat/dev/qat_crypto_pmd_gen2.c | 2 + drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 214 drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 122 +++ dr

[PATCH v11 7/9] crypto/qat: rework burst data path

2022-02-22 Thread Fan Zhang
ai Ji Acked-by: Fan Zhang --- drivers/common/qat/qat_qp.c | 42 +- drivers/crypto/qat/dev/qat_sym_pmd_gen1.c | 4 - drivers/crypto/qat/qat_asym.c | 2 +- drivers/crypto/qat/qat_asym.h | 22 - drivers/crypto/qat/qat_sym.c

[PATCH v11 6/9] crypto/qat: unify asymmetric functions

2022-02-22 Thread Fan Zhang
From: 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

[PATCH v11 5/9] crypto/qat: unify symmetric functions

2022-02-22 Thread Fan Zhang
From: 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

[PATCH v11 4/9] crypto/qat: rework asymmetric op build operation

2022-02-22 Thread Fan Zhang
From: 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

[PATCH v11 3/9] crypto/qat: rework session functions

2022-02-22 Thread Fan Zhang
From: 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_g

[PATCH v11 2/9] crypto/qat: support symmetric build op request

2022-02-22 Thread Fan Zhang
From: 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

[PATCH v11 1/9] common/qat: define build request and dequeue ops

2022-02-22 Thread Fan Zhang
From: 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

[PATCH v11 0/9] drivers/qat: QAT symmetric crypto datapatch rework

2022-02-22 Thread Fan Zhang
This patch reworks QAT symmetric crypto datapatch implementation where each generation request building separated and the crypto operation under the raw datapath api implementation are unified. In addtion this patchset also enables QAT OOP support in raw datapath api implementation. v11: - fixed

[PATCH v2] crypto/ipsec_mb: add NULL/NULL support to aesni-mb

2022-02-21 Thread Fan Zhang
Add NULL cipher and auth support to AESNI-MB PMD type. Signed-off-by: Fan Zhang Signed-off-by: Declan Doherty Signed-off-by: Radu Nicolau --- v2: - Added actual PMD support. drivers/crypto/ipsec_mb/pmd_aesni_mb.c | 18 ++ drivers/crypto/ipsec_mb/pmd_aesni_mb_priv.h | 37

[PATCH v5] maintainers: update for crypto api/crypto perf/sw crypto pmds using ipsec-mb

2022-01-24 Thread Fan Zhang
Add myself as Crypto API, QAT, SW PMDs based on ipsec-mb, NULL PMD, and crypto perf test maintainer. Also remove Declan, Deepak, and John from the maintainers of these areas. Signed-off-by: Fan Zhang Acked-by: Declan Doherty Acked-by: Fiona Trahe Acked-by: John Griffin Acked-by: Pablo de Lara

[PATCH v4] maintainers: update for crypto api/crypto perf/sw crypto pmds using ipsec-mb

2022-01-18 Thread Fan Zhang
Add myself as Crypto API, QAT, SW PMDs based on ipsec-mb, NULL PMD, and crypto perf test maintainer. Also remove Declan, Deepak, and John from the maintainers of these areas. Signed-off-by: Fan Zhang Acked-by: Declan Doherty Acked-by: Fiona Trahe Acked-by: John Griffin Acked-by: Pablo de Lara

[dpdk-dev] [PATCH] examples/fips_validation: fix device start

2021-10-28 Thread Fan Zhang
Fixes: 261bbff75e34 ("examples: use separate crypto session mempools") Cc: roy.fan.zh...@intel.com Bugzilla Link: https://bugs.dpdk.org/show_bug.cgi?id=842 This patch fixes the missing device start for fips validation sample app. Signed-off-by: Fan Zhang --- examples/fips_validat

[dpdk-dev] [dpdk-dev v4 9/9] crypto/qat: add gen specific implementation

2021-10-22 Thread Fan Zhang
This patch replaces the mixed QAT symmetric and asymmetric support implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/meson.build

[dpdk-dev] [dpdk-dev v4 8/9] crypto/qat: add gen specific data and function

2021-10-22 Thread Fan Zhang
This patch adds the symmetric and asymmetric crypto data structure and function prototypes for different QAT generations. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/crypto/qat/README |7 - drivers/crypto/qat/meson.build

[dpdk-dev] [dpdk-dev v4 7/9] crypto/qat: unified device private data structure

2021-10-22 Thread Fan Zhang
This patch unifies the QAT symmetric and asymmetric device private data structures and functions. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/meson.build | 2 +- drivers/common/qat/qat_common.c | 15 ++ drivers/common/qat

[dpdk-dev] [dpdk-dev v4 6/9] compress/qat: add gen specific implementation

2021-10-22 Thread Fan Zhang
This patch replaces the mixed QAT compression support implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Adam Dybkowski Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat

[dpdk-dev] [dpdk-dev v4 5/9] compress/qat: add gen specific data and function

2021-10-22 Thread Fan Zhang
This patch adds the compression data structure and function prototypes for different QAT generations. Signed-off-by: Adam Dybkowski Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/dev/qat_dev_gen1.c | 2 - .../common/qat/qat_adf

[dpdk-dev] [dpdk-dev v4 4/9] common/qat: add gen specific queue implementation

2021-10-22 Thread Fan Zhang
This patch replaces the mixed QAT queue pair configuration implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/dev/qat_dev_gen1.c | 190

[dpdk-dev] [dpdk-dev v4 3/9] common/qat: add gen specific queue pair function

2021-10-22 Thread Fan Zhang
This patch adds the queue pair data structure and function prototypes for different QAT generations. Signed-off-by: Fan Zhang --- drivers/common/qat/qat_qp.c | 3 ++ drivers/common/qat/qat_qp.h | 103 2 files changed, 71 insertions(+), 35 deletions

[dpdk-dev] [dpdk-dev v4 2/9] common/qat: add gen specific device implementation

2021-10-22 Thread Fan Zhang
This patch replaces the mixed QAT device configuration implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/dev/qat_dev_gen1.c | 66

[dpdk-dev] [dpdk-dev v4 1/9] common/qat: add gen specific data and function

2021-10-22 Thread Fan Zhang
This patch adds the data structure and function prototypes for different QAT generations. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/qat_common.h | 14 -- drivers/common/qat/qat_device.c | 4 drivers/common/qat

[dpdk-dev] [dpdk-dev v4 0/9] drivers/qat: isolate implementations of qat generations

2021-10-22 Thread Fan Zhang
more unified naming conventions. v2: - unified asym and sym data structures for qat. - more refined per gen code split. Fan Zhang (9): common/qat: add gen specific data and function common/qat: add gen specific device implementation common/qat: add gen specific queue pair function commo

[dpdk-dev] [dpdk-dev v3 10/10] common/qat: unify naming conventions in qat functions

2021-10-14 Thread Fan Zhang
From: Arek Kusztal This patch unifies naming conventions across QAT PMD files. It will help maintaining code and further development. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/qat_common.c | 30 +- drivers/common/qat

[dpdk-dev] [dpdk-dev v3 09/10] crypto/qat: add gen specific implementation

2021-10-14 Thread Fan Zhang
This patch replaces the mixed QAT symmetric and asymmetric support implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/meson.build

[dpdk-dev] [dpdk-dev v3 08/10] crypto/qat: add gen specific data and function

2021-10-14 Thread Fan Zhang
This patch adds the symmetric and asymmetric crypto data structure and function prototypes for different QAT generations. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/crypto/qat/README |7 - drivers/crypto/qat/meson.build

[dpdk-dev] [dpdk-dev v3 07/10] crypto/qat: unified device private data structure

2021-10-14 Thread Fan Zhang
This patch unifies the QAT symmetric and asymmetric device private data structures and functions. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/meson.build | 2 +- drivers/common/qat/qat_common.c | 15 ++ drivers/common/qat

[dpdk-dev] [dpdk-dev v3 06/10] compress/qat: add gen specific implementation

2021-10-14 Thread Fan Zhang
This patch replaces the mixed QAT compression support implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Adam Dybkowski Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat

[dpdk-dev] [dpdk-dev v3 05/10] compress/qat: add gen specific data and function

2021-10-14 Thread Fan Zhang
This patch adds the compression data structure and function prototypes for different QAT generations. Signed-off-by: Adam Dybkowski Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/dev/qat_dev_gen1.c | 2 - .../common/qat/qat_adf

[dpdk-dev] [dpdk-dev v3 04/10] common/qat: add gen specific queue implementation

2021-10-14 Thread Fan Zhang
This patch replaces the mixed QAT queue pair configuration implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/dev/qat_dev_gen1.c | 193

[dpdk-dev] [dpdk-dev v3 03/10] common/qat: add gen specific queue pair function

2021-10-14 Thread Fan Zhang
This patch adds the queue pair data structure and function prototypes for different QAT generations. Signed-off-by: Fan Zhang --- drivers/common/qat/qat_qp.c | 3 ++ drivers/common/qat/qat_qp.h | 103 2 files changed, 71 insertions(+), 35 deletions

[dpdk-dev] [dpdk-dev v3 02/10] common/qat: add gen specific device implementation

2021-10-14 Thread Fan Zhang
This patch replaces the mixed QAT device configuration implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/dev/qat_dev_gen1.c | 66

[dpdk-dev] [dpdk-dev v3 01/10] common/qat: add gen specific data and function

2021-10-14 Thread Fan Zhang
This patch adds the data structure and function prototypes for different QAT generations. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/qat_common.h | 14 -- drivers/common/qat/qat_device.c | 4 drivers/common/qat

[dpdk-dev] [dpdk-dev v3 00/10] drivers/qat: isolate implementations of qat generations

2021-10-14 Thread Fan Zhang
fined per gen code split. Arek Kusztal (1): common/qat: unify naming conventions in qat functions Fan Zhang (9): common/qat: add gen specific data and function common/qat: add gen specific device implementation common/qat: add gen specific queue pair function common/qat: add gen spe

[dpdk-dev] [PATCH v2 10/10] doc: update release note

2021-10-01 Thread Fan Zhang
This patch updates the release note to describe qat refactor changes made. Signed-off-by: Fan Zhang --- doc/guides/rel_notes/release_21_11.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst index

[dpdk-dev] [PATCH v2 09/10] crypto/qat: add gen specific implementation

2021-10-01 Thread Fan Zhang
This patch replaces the mixed QAT symmetric and asymmetric support implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/meson.build

[dpdk-dev] [PATCH v2 08/10] crypto/qat: add gen specific data and function

2021-10-01 Thread Fan Zhang
This patch adds the symmetric and asymmetric crypto data structure and function prototypes for different QAT generations. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/crypto/qat/README |7 - drivers/crypto/qat/meson.build

[dpdk-dev] [PATCH v2 07/10] crypto/qat: unified device private data structure

2021-10-01 Thread Fan Zhang
This patch unifies the QAT symmetric and asymmetric device private data structures and functions. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/meson.build | 2 +- drivers/common/qat/qat_device.h | 7 +- drivers/crypto/qat

[dpdk-dev] [PATCH v2 06/10] compress/qat: add gen specific implementation

2021-10-01 Thread Fan Zhang
This patch replaces the mixed QAT compression support implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Adam Dybkowski Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat

[dpdk-dev] [PATCH v2 05/10] compress/qat: add gen specific data and function

2021-10-01 Thread Fan Zhang
This patch adds the compression data structure and function prototypes for different QAT generations. Signed-off-by: Adam Dybkowski Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/dev/qat_dev_gen1.c | 2 - .../common/qat/qat_adf

[dpdk-dev] [PATCH v2 04/10] common/qat: add gen specific queue implementation

2021-10-01 Thread Fan Zhang
This patch replaces the mixed QAT queue pair configuration implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/dev/qat_dev_gen1.c | 193

[dpdk-dev] [PATCH v2 03/10] common/qat: add gen specific queue pair function

2021-10-01 Thread Fan Zhang
This patch adds the queue pair data structure and function prototypes for different QAT generations. Signed-off-by: Fan Zhang --- drivers/common/qat/qat_qp.c | 3 +++ drivers/common/qat/qat_qp.h | 45 + 2 files changed, 48 insertions(+) diff --git a/drivers

[dpdk-dev] [PATCH v2 02/10] common/qat: add gen specific device implementation

2021-10-01 Thread Fan Zhang
This patch replaces the mixed QAT device configuration implementation by separate files with shared or individual implementation for specific QAT generation. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/dev/qat_dev_gen1.c | 66

[dpdk-dev] [PATCH v2 01/10] common/qat: add gen specific data and function

2021-10-01 Thread Fan Zhang
This patch adds the data structure and function prototypes for different QAT generations. Signed-off-by: Arek Kusztal Signed-off-by: Fan Zhang Signed-off-by: Kai Ji --- drivers/common/qat/qat_common.c | 8 drivers/common/qat/qat_common.h | 16 ++-- drivers/common/qat

[dpdk-dev] [PATCH v2 00/10] drivers/qat: isolate implementations of qat generations

2021-10-01 Thread Fan Zhang
generations' implementations. Also adding the support to new features or new qat generation hardware will have zero impact to existing functionalities. Fan Zhang (10): common/qat: add gen specific data and function common/qat: add gen specific device implementation common/qat: add gen spe

[dpdk-dev] app/test: fix pdcp short mac test

2021-09-16 Thread Fan Zhang
Fixes: c24489e479fd ("test/crypto: support PDCP short MAC-I") Cc: g.si...@nxp.com This patch fixes the pdcp short mac-i test by removing them from snow3g and kasumi test suite and move to pdcp test suite. This is to prevent incorrect failure for crypto device not support pdcp. Signed-o

[dpdk-dev] crypto/qat: fix failed raw data path dequeue

2021-07-27 Thread Fan Zhang
roy.fan.zh...@intel.com Signed-off-by: Fan Zhang --- drivers/crypto/qat/qat_sym_hw_dp.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/crypto/qat/qat_sym_hw_dp.c b/drivers/crypto/qat/qat_sym_hw_dp.c index 4305579b54..ac9ac05363 100644 --- a/drivers/crypto/qat/qat_sym_hw_dp.c +++ b/driv

[dpdk-dev] [dpdk-dev v4] crypto/snow3g: add support for digest appended ops

2021-07-27 Thread Fan Zhang
From: Kai Ji This patch enable out-of-place auth-cipher operations where digest should be encrypted among with the rest of raw data. It also adds support for partially encrypted digest when using auth-cipher operations. Fixes: 7c87e2d7b359 ("crypto/snow3g: use IPsec library") Cc: pablo.de.lara.g

[dpdk-dev] doc: update dependency requirement for some PMDs

2021-06-23 Thread Fan Zhang
fixing the issue the documentation is updated to state it. Signed-off-by: Fan Zhang --- doc/guides/cryptodevs/aesni_gcm.rst | 3 ++- doc/guides/cryptodevs/aesni_mb.rst | 3 ++- doc/guides/cryptodevs/kasumi.rst| 3 ++- doc/guides/cryptodevs/snow3g.rst| 3 ++- doc/guides/cryptodevs/zuc.rst

[dpdk-dev] [dpdk-dev v3] maintainers: update for crypto api/crypto perf/sw crypto pmds using ipsec-mb

2021-05-21 Thread Fan Zhang
Add myself as Crypto API, QAT, SW PMDs based on ipsec-mb, NULL PMD, and crypto perf test maintainer. Also remove Declan, Deepak, and John from the maintainers of these areas. Signed-off-by: Fan Zhang Acked-by: Declan Doherty Acked-by: Fiona Trahe Acked-by: John Griffin --- MAINTAINERS | 19

[dpdk-dev] [dpdk-dev v2] maintainers: update for qat and ipsec-mb pmds

2021-05-20 Thread Fan Zhang
Add myself to Crypto API, QAT, SW PMDs based on ipsec-mb, and NULL PMD maintainer. Signed-off-by: Fan Zhang Acked-by: Declan Doherty Acked-by: Fiona Trahe Acked-by: John Griffin --- V2: - Remove Declan from crypto perf maintainer MAINTAINERS | 19 ++- 1 file changed, 10

[dpdk-dev] maintainers: update for qat and ipsec-mb pmds

2021-05-20 Thread Fan Zhang
Add myself to Crypto API, QAT, SW PMDs based on ipsec-mb, and NULL PMD maintainer. Signed-off-by: Fan Zhang --- MAINTAINERS | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5877a16971..11653b3dcd 100644 --- a/MAINTAINERS

[dpdk-dev] [dpdk-dev v2] cryptodev: change raw data path dequeue API

2021-03-31 Thread Fan Zhang
This patch changes the experimental raw data path dequeue burst API. Originally the API enforces the user to provide callback function to get maximum dequeue count. This change gives the user one more option to pass directly the expected dequeue count. Signed-off-by: Fan Zhang --- app/test

[dpdk-dev] cryptodev: change raw data path dequeue API

2021-03-16 Thread Fan Zhang
This patch changes the experimental raw data path dequeue burst API. Originally the API enforces the user to provide callback function to get maximum dequeue count. This change gives the user one more option to pass directly the expected dequeue count. Signed-off-by: Fan Zhang --- app/test

[dpdk-dev] crypto/qat: fix digest in buffer

2021-01-20 Thread Fan Zhang
This patch fixes the missed digest in buffer support to QAT symmetric raw API. Originally digest in buffer is supported only for wireless algorithms Fixes: 728c76b0e50f ("crypto/qat: support raw datapath API") Cc: roy.fan.zh...@intel.com Cc: sta...@dpdk.org Signed-off-by: Fan Zhang --

[dpdk-dev] test: fix bypassed out of place test

2020-11-05 Thread Fan Zhang
This patch fixes bypassed out of place test for PMDs that support it. Fixes: 4868f6591c6f ("test/crypto: add cases for raw datapath API") Cc: roy.fan.zh...@intel.com Signed-off-by: Fan Zhang --- app/test/test_cryptodev.c | 3 --- 1 file changed, 3 deletions(-) diff --git

[dpdk-dev] [dpdk-dev v2] crypto/aesni_mb: fix cpu crypto cipher auth

2020-10-29 Thread Fan Zhang
This patch fixes the AESNI-MB PMD CPU crypto process function. Originally the function tried to access crypto vector's aad buffer even it is not needed. Fixes: 8d928d47a29a ("cryptodev: change crypto symmetric vector structure") Cc: roy.fan.zh...@intel.com Signed-off-by: Fan Zhang

[dpdk-dev] [PATCH] crypto/aesni_mb: fix cpu crypto cipher auth

2020-10-29 Thread Fan Zhang
This patch fixes the AESNI-MB PMD CPU crypto process function. Orignally the function tried to access crypto vector's aad buffer even it is not needed. Fixes: 8d928d47a29a ("cryptodev: change crypto symmetric vector structure") Cc: roy.fan.zh...@intel.com Signed-off-by: Fan Zhan

[dpdk-dev] [dpdk-dev v2] test: fix GMAC SGL test

2020-10-29 Thread Fan Zhang
This patch fixes the GMAC SGL test that fails to bypass unsupported PMDs. Fixes: dcdd01691f39 ("test/crypto: add GMAC SGL") Cc: pablo.de.lara.gua...@intel.com Signed-off-by: Fan Zhang --- v2: - fix typo app/test/test_cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[dpdk-dev] test: fix GMAC SGL test

2020-10-29 Thread Fan Zhang
This ptach fixes the GMAC SGL test that fails to bypass unsupported PMDs. Fixes: dcdd01691f39 ("test/crypto: add GMAC SGL") Cc: pablo.de.lara.gua...@intel.com Signed-off-by: Fan Zhang --- app/test/test_cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[dpdk-dev] [dpdk-dev 1/2] fips_validation: fix missed version line

2020-10-22 Thread Fan Zhang
This patch fixes the missing version line in the response file. Fixes: 793650184099 ("examples/fips_validation: fix version compatibility") Cc: march...@marvell.com Signed-off-by: Fan Zhang --- examples/fips_validation/fips_validation.c | 2 +- 1 file changed, 1 insertion(+),

[dpdk-dev] [dpdk-dev 2/2] fips_validation: fix gcm test

2020-10-22 Thread Fan Zhang
This patch fixes FIPS GCM test of the redundant plaintext string write and insufficient test case support check for some corner cases. Fixes: d09abf2d1007 ("examples/fips_validation: update GCM test") Cc: roy.fan.zh...@intel.com Signed-off-by: Fan Zhang --- examples/fips_

[dpdk-dev] [dpdk-dev 0/2] fips_validation: fix issues

2020-10-22 Thread Fan Zhang
This patch fixes two issues in FIPS validation sample application. Fan Zhang (2): fips_validation: fix missed version line fips_validation: fix gcm test examples/fips_validation/fips_validation.c | 2 +- examples/fips_validation/fips_validation_gcm.c | 1 - examples/fips_validation

[dpdk-dev] [PATCH 2/2] fips_validation: fix gcm test

2020-10-22 Thread Fan Zhang
This patch fixes FIPS GCM test of the redundant plaintext string write and insufficient test case support check for some corner cases. Fixes: d09abf2d1007 ("examples/fips_validation: update GCM test") Cc: roy.fan.zh...@intel.com Signed-off-by: Fan Zhang --- examples/fips_

[dpdk-dev] [PATCH 0/2] fips_validation: fix issues

2020-10-22 Thread Fan Zhang
This patch fixes two issues in FIPS validation sample application. Fan Zhang (2): fips_validation: fix missed version line fips_validation: fix gcm test examples/fips_validation/fips_validation.c | 2 +- examples/fips_validation/fips_validation_gcm.c | 1 - examples/fips_validation

[dpdk-dev] [PATCH 1/2] fips_validation: fix missed version line

2020-10-22 Thread Fan Zhang
This patch fixes the missing version line in the response file. Fixes: 793650184099 ("examples/fips_validation: fix version compatibility") Cc: march...@marvell.com Signed-off-by: Fan Zhang --- examples/fips_validation/fips_validation.c | 2 +- 1 file changed, 1 insertion(+),

[dpdk-dev] [dpdk-dev v13 4/4] test/crypto: add unit-test for cryptodev raw API test

2020-10-10 Thread Fan Zhang
This patch adds the cryptodev raw API test support to unit test. In addition a new test-case for QAT PMD for the test type is enabled. Signed-off-by: Fan Zhang Acked-by: Adam Dybkowski --- app/test/test_cryptodev.c | 787 -- app/test/test_cryptodev.h

[dpdk-dev] [dpdk-dev v13 2/4] cryptodev: add raw crypto data-path APIs

2020-10-10 Thread Fan Zhang
This patch adds raw data-path APIs for enqueue and dequeue operations to cryptodev. The APIs support flexible user-define enqueue and dequeue behaviors. Signed-off-by: Fan Zhang Signed-off-by: Piotr Bronowski Acked-by: Adam Dybkowski --- doc/guides/cryptodevs/features/default.ini| 1

[dpdk-dev] [dpdk-dev v13 3/4] crypto/qat: add raw crypto data-path API support

2020-10-10 Thread Fan Zhang
This patch updates QAT PMD to add raw data-path API support. Signed-off-by: Fan Zhang Acked-by: Adam Dybkowski --- doc/guides/cryptodevs/features/qat.ini | 1 + doc/guides/rel_notes/release_20_11.rst | 4 + drivers/crypto/qat/meson.build | 1 + drivers/crypto/qat/qat_sym.h

[dpdk-dev] [dpdk-dev v13 1/4] cryptodev: change crypto symmetric vector structure

2020-10-10 Thread Fan Zhang
This patch updates ``rte_crypto_sym_vec`` structure to add support for both cpu_crypto synchrounous operation and asynchronous raw data-path APIs. The patch also includes AESNI-MB and AESNI-GCM PMD changes, unit test changes and documentation updates. Signed-off-by: Fan Zhang --- app/test

[dpdk-dev] [dpdk-dev v13 0/4] cryptodev: add raw data-path APIs

2020-10-10 Thread Fan Zhang
the API to cryptodev. - Added cryptodev feature flags. v2: - Used a structure to simplify parameters. - Added unit tests. - Added documentation. Fan Zhang (4): cryptodev: change crypto symmetric vector structure cryptodev: add raw crypto data-path APIs crypto/qat: add raw crypto data-path API supp

[dpdk-dev] [dpdk-dev v12 4/4] test/crypto: add unit-test for cryptodev raw API test

2020-10-10 Thread Fan Zhang
This patch adds the cryptodev raw API test support to unit test. In addition a new test-case for QAT PMD for the test type is enabled. Signed-off-by: Fan Zhang Acked-by: Adam Dybkowski --- app/test/test_cryptodev.c | 787 -- app/test/test_cryptodev.h

[dpdk-dev] [dpdk-dev v12 1/4] cryptodev: change crypto symmetric vector structure

2020-10-10 Thread Fan Zhang
This patch updates ``rte_crypto_sym_vec`` structure to add support for both cpu_crypto synchrounous operation and asynchronous raw data-path APIs. The patch also includes AESNI-MB and AESNI-GCM PMD changes, unit test changes and documentation updates. Signed-off-by: Fan Zhang Acked-by: Adam

[dpdk-dev] [dpdk-dev v12 2/4] cryptodev: add raw crypto data-path APIs

2020-10-10 Thread Fan Zhang
This patch adds raw data-path APIs for enqueue and dequeue operations to cryptodev. The APIs support flexible user-define enqueue and dequeue behaviors. Signed-off-by: Fan Zhang Signed-off-by: Piotr Bronowski Acked-by: Adam Dybkowski --- doc/guides/cryptodevs/features/default.ini| 1

[dpdk-dev] [dpdk-dev v12 3/4] crypto/qat: add raw crypto data-path API support

2020-10-10 Thread Fan Zhang
This patch updates QAT PMD to add raw data-path API support. Signed-off-by: Fan Zhang Acked-by: Adam Dybkowski --- doc/guides/cryptodevs/features/qat.ini | 1 + doc/guides/rel_notes/release_20_11.rst | 4 + drivers/crypto/qat/meson.build | 1 + drivers/crypto/qat/qat_sym.h

[dpdk-dev] [dpdk-dev v12 0/4] cryptodev: add raw data-path APIs

2020-10-10 Thread Fan Zhang
cryptodev feature flags. v2: - Used a structure to simplify parameters. - Added unit tests. - Added documentation. Fan Zhang (4): cryptodev: change crypto symmetric vector structure cryptodev: add raw crypto data-path APIs crypto/qat: add raw crypto data-path API support test/crypto: add

[dpdk-dev] [dpdk-dev v11 2/4] cryptodev: add raw crypto data-path APIs

2020-10-09 Thread Fan Zhang
This patch adds raw data-path APIs for enqueue and dequeue operations to cryptodev. The APIs support flexible user-define enqueue and dequeue behaviors. Signed-off-by: Fan Zhang Signed-off-by: Piotr Bronowski Acked-by: Adam Dybkowski --- doc/guides/cryptodevs/features/default.ini| 1

[dpdk-dev] [dpdk-dev v11 1/4] cryptodev: change crypto symmetric vector structure

2020-10-09 Thread Fan Zhang
This patch updates ``rte_crypto_sym_vec`` structure to add support for both cpu_crypto synchrounous operation and asynchronous raw data-path APIs. The patch also includes AESNI-MB and AESNI-GCM PMD changes, unit test changes and documentation updates. Signed-off-by: Fan Zhang Acked-by: Adam

[dpdk-dev] [dpdk-dev v11 4/4] test/crypto: add unit-test for cryptodev raw API test

2020-10-09 Thread Fan Zhang
This patch adds the cryptodev raw API test support to unit test. In addtion a new test-case for QAT PMD for the test type is enabled. Signed-off-by: Fan Zhang Acked-by: Adam Dybkowski --- app/test/test_cryptodev.c | 780 -- app/test/test_cryptodev.h

[dpdk-dev] [dpdk-dev v11 3/4] crypto/qat: add raw crypto data-path API support

2020-10-09 Thread Fan Zhang
This patch updates QAT PMD to add raw data-path API support. Signed-off-by: Fan Zhang Acked-by: Adam Dybkowski --- drivers/crypto/qat/meson.build | 1 + drivers/crypto/qat/qat_sym.h | 11 + drivers/crypto/qat/qat_sym_hw_dp.c | 959 + drivers/crypto/qat

[dpdk-dev] [dpdk-dev v11 0/4] cryptodev: add raw data-path APIs

2020-10-09 Thread Fan Zhang
o simplify parameters. - Added unit tests. - Added documentation. Fan Zhang (4): cryptodev: change crypto symmetric vector structure cryptodev: add raw crypto data-path APIs crypto/qat: add raw crypto data-path API support test/crypto: add unit-test for cryptodev raw API test app/test/test_c

[dpdk-dev] [dpdk-dev v3 2/2] fips_validation: update GCM test

2020-10-09 Thread Fan Zhang
store the generated IV in the response file. This patch also adds the support to that. Signed-off-by: Fan Zhang Signed-off-by: Weqaar Janjua Acked-by: John Griffin --- doc/guides/rel_notes/release_20_11.rst| 5 + examples/fips_validation/fips_validation.h| 26

[dpdk-dev] [dpdk-dev v3 0/2] fips_validation: add SGL and GMAC support

2020-10-09 Thread Fan Zhang
. V3: - Rebased on top of latest master. V2: - Fixed compile issue. Fan Zhang (2): fips_validation: add SGL support fips_validation: update GCM test doc/guides/rel_notes/release_20_11.rst| 5 + doc/guides/sample_app_ug/fips_validation.rst | 6 + examples/fips_validation

[dpdk-dev] [dpdk-dev v3 1/2] fips_validation: add SGL support

2020-10-09 Thread Fan Zhang
the application will automatically build chained mbufs for the target cryptodev PMD to test. Signed-off-by: Fan Zhang Acked-by: John Griffin --- doc/guides/sample_app_ug/fips_validation.rst | 6 + examples/fips_validation/fips_validation.h | 3 +- examples/fips_validation/main.c

[dpdk-dev] [dpdk-dev v2 2/2] vhost/crypto: fix feature negotiation

2020-10-02 Thread Fan Zhang
driver. Fixes: 939066d96563 ("vhost/crypto: add public function implementation") Cc: roy.fan.zh...@intel.com Signed-off-by: Fan Zhang --- examples/vhost_crypto/main.c | 3 +- lib/librte_vhost/rte_vhost_crypto.h| 12 lib/librte_vhost/rte_vhost_version.map |

[dpdk-dev] [dpdk-dev v2 0/2] vhost/crypto: fix initialization

2020-10-02 Thread Fan Zhang
device types. - Added new API rte_vhost_crypto_driver_start to distinguish between virtio-net and virtio-crypto built-in drivers initialization. v2: - Removed socket.c setting vhost crypto features. - Fixed incorrect feature flag. - Rebased on top of latest master. Fan Zhang (2): vhost: add backend

[dpdk-dev] [dpdk-dev v2 1/2] vhost: add backend type in driver start

2020-10-02 Thread Fan Zhang
This patch adds an internal driver start function with a newly added backend type identifier as parameter. With this way different built-in driver types (net, crypto) can be identified. Signed-off-by: Fan Zhang --- lib/librte_vhost/socket.c | 39 --- lib

[dpdk-dev] vhost/crypto: fix initialization.

2020-10-02 Thread Fan Zhang
actor virtio ready check") Cc: maxime.coque...@redhat.com Signed-off-by: Fan Zhang --- examples/vhost_crypto/main.c | 3 +- lib/librte_vhost/rte_vhost_crypto.h| 12 +++ lib/librte_vhost/rte_vhost_version.map | 1 + lib/librte_vhost/socket.c

[dpdk-dev] [dpdk-dev v10 3/4] crypto/qat: add raw crypto data-path API support

2020-09-24 Thread Fan Zhang
This patch updates QAT PMD to add raw data-path API support. Signed-off-by: Fan Zhang --- drivers/crypto/qat/meson.build | 1 + drivers/crypto/qat/qat_sym.h | 11 + drivers/crypto/qat/qat_sym_hw_dp.c | 951 + drivers/crypto/qat/qat_sym_pmd.c | 9

  1   2   3   4   5   6   7   8   9   >