[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

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

[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

[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

[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

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

[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

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

[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

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

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

[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

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

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

[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

[dpdk-dev] [PATCH] Scheduler: add driver for scheduler crypto pmd

2016-12-02 Thread Fan Zhang
rder will take place. This feature can be disabled by filling "no" in the "enable_reorder" option. For example, the following EAL commandline fragment creates a scheduler PMD with crypto op reordering feature enabled: ... --vdev "crypto_scheduler_pmd,enable_reorder=ye

[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 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] [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] 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] cryptodev: fix for loop in rte_cryptodev_pmd_get_named_dev

2017-01-11 Thread Fan Zhang
Fixes: d11b0f30 ("cryptodev: introduce API and framework for crypto devices") This patch fixes the dev value update problem in rte_cryptodev_pmd_get_named_dev, orginally, dev won't be updated after the initiail step in the loop. Signed-off-by: Fan Zhang --- lib/l

[dpdk-dev] [PATCH 1/2] cryptodev: add user defined name initializing parameter to software PMD

2017-01-11 Thread Fan Zhang
d fragment 2: --vdev "crypto_aesni_gcm_pmd,name=gcm1" The above command will result in creating a AESNI-GCM PMD with name of "gcm1". This fragment can be placed in the same CLI command multiple times, as long as each having a unique name value. Signed-off-by: Fan Zhang -

[dpdk-dev] [PATCH 2/2] crypto: add user defined name initializing parameter parsing to software PMDs

2017-01-11 Thread Fan Zhang
This patch adds user defined name parsing feature to software PMDs. Signed-off-by: Fan Zhang --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 58 ++-- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 61 ++ drivers/crypto/kasumi/rte_kasumi_pmd.c

[dpdk-dev] [PATCH 0/2] crypto: add user defined name initializing parameter

2017-01-11 Thread Fan Zhang
This patchset adds a user defined name initializing parameter to all software cryptodevs. Fan Zhang (2): cryptodev: add user defined name initializing parameter to software PMD crypto: add user defined name initializing parameter parsing to software PMDs drivers/crypto/aesni_gcm

[dpdk-dev] [PATCH v2 2/2] crypto: add user defined name initializing parameter parsing to software PMDs

2017-01-12 Thread Fan Zhang
This patch adds user defined name parsing feature to software PMDs. Signed-off-by: Fan Zhang --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 58 ++-- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 61 ++ drivers/crypto/kasumi/rte_kasumi_pmd.c

[dpdk-dev] [PATCH v2 1/2] cryptodev: add user defined name initializing parameter to software PMD

2017-01-12 Thread Fan Zhang
d fragment 2: --vdev "crypto_aesni_gcm_pmd,name=gcm1" The above command will result in creating a AESNI-GCM PMD with name of "gcm1". This fragment can be placed in the same CLI command multiple times, as long as each having a unique name value. Signed-off-by: Fan Zhang -

[dpdk-dev] [PATCH v2 0/2] crypto: add user defined name initializing parameter

2017-01-12 Thread Fan Zhang
This patchset adds a user defined name initializing parameter to all software cryptodevs. v2: Fixed a line adds whitespace error Updated rte_cryptodev_version.map Fan Zhang (2): cryptodev: add user defined name initializing parameter to software PMD crypto: add user defined name

[dpdk-dev] [PATCH v3 0/2] crypto: add user defined name initializing parameter

2017-01-16 Thread Fan Zhang
This patchset adds a user defined name initializing parameter to all software cryptodevs. v3: Added name parameter length check v2: Fixed a line adds whitespace error Updated rte_cryptodev_version.map Fan Zhang (2): cryptodev: add user defined name initializing parameter to software PMD

[dpdk-dev] [PATCH v3 1/2] cryptodev: add user defined name initializing parameter to software PMD

2017-01-16 Thread Fan Zhang
d fragment 2: --vdev "crypto_aesni_gcm_pmd,name=gcm1" The above command will result in creating a AESNI-GCM PMD with name of "gcm1". This fragment can be placed in the same CLI command multiple times, as long as each having a unique name value. Signed-off-by: Fan Zhang -

[dpdk-dev] [PATCH v3 2/2] crypto: add user defined name initializing parameter parsing to software PMDs

2017-01-16 Thread Fan Zhang
This patch adds user defined name parsing feature to software PMDs. Signed-off-by: Fan Zhang --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 58 ++-- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 61 ++ drivers/crypto/kasumi/rte_kasumi_pmd.c

[dpdk-dev] [PATCH v4] Scheduler: add driver for scheduler crypto pmd

2017-01-17 Thread Fan Zhang
option support Changes in v3: Fixed config/common_base. Changes in v2: New approaches in API to suit future scheduling modes. Signed-off-by: Fan Zhang Signed-off-by: Declan Doherty --- config/common_base | 6 + drivers/crypto/Makefile

[dpdk-dev] [PATCH v5] crypto/scheduler: add driver for scheduler crypto pmd

2017-01-17 Thread Fan Zhang
ight. Changes in v4: Fixed a few bugs. Added slave EAL commandline option support. Changes in v3: Fixed config/common_base. Changes in v2: New approaches in API to suit future scheduling modes. Signed-off-by: Fan Zhang Signed-off-by: Declan Doherty --- config/common_base

[dpdk-dev] [PATCH v6 00/11] crypto/scheduler: add driver for scheduler crypto pmd

2017-01-24 Thread Fan Zhang
is attached. Also, to configure the scheduler in the run-time, like attach/detach slave(s), change scheduling mode, or enable/disable crypto op ordering, one should stop the scheduler first, otherwise an error will be returned. - Enabling crypto ops reordering will cause overwriting the userdat

[dpdk-dev] [PATCH v6 01/11] cryptodev: add scheduler PMD name and type

2017-01-24 Thread Fan Zhang
This patch adds the cryptodev scheduler PMD name and type identifier to librte_cryptodev. Signed-off-by: Fan Zhang --- lib/librte_cryptodev/rte_cryptodev.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index

[dpdk-dev] [PATCH v6 02/11] crypto/scheduler: add APIs for scheduler

2017-01-24 Thread Fan Zhang
Adds APIs and function prototypes for the scheduler PMD to perform extra operations other than standard cryptodev APIs. Signed-off-by: Fan Zhang --- drivers/crypto/scheduler/rte_cryptodev_scheduler.h | 162 + .../scheduler/rte_cryptodev_scheduler_operations.h | 71

[dpdk-dev] [PATCH v6 03/11] crypto/scheduler: add internal structure declarations

2017-01-24 Thread Fan Zhang
Adds a number of internal structures for the cryptodev scheduler PMD. The structures include the scheduler context, slave, queue pair context, and session. Signed-off-by: Fan Zhang --- drivers/crypto/scheduler/scheduler_pmd_private.h | 115 +++ 1 file changed, 115 insertions

[dpdk-dev] [PATCH v6 05/11] crypto/scheduler: add round-robin scheduling mode

2017-01-24 Thread Fan Zhang
Implements round-robin scheduling mode and register into cryptodev scheduler ops structure. This mode enqueues a burst of operation to one of its slaves, and iterates the next burst to the other slave. Same procedure is done on dequeueing operations. Signed-off-by: Fan Zhang --- drivers/crypto

[dpdk-dev] [PATCH v6 04/11] crypto/scheduler: add scheduler API implementations

2017-01-24 Thread Fan Zhang
Adds the implementations of the APIs for scheduler cryptodev PMD. Signed-off-by: Fan Zhang --- drivers/crypto/scheduler/rte_cryptodev_scheduler.c | 464 + 1 file changed, 464 insertions(+) create mode 100644 drivers/crypto/scheduler/rte_cryptodev_scheduler.c diff --git a

[dpdk-dev] [PATCH v6 06/11] crypto/scheduler: register scheduler vdev driver

2017-01-24 Thread Fan Zhang
Adds crypto scheduler's PMD's probe and remove function and the device's enqueue and dequeue burst functions. A cryptodev scheduler PMD is then registered in the end. Signed-off-by: Fan Zhang --- drivers/crypto/scheduler/scheduler_pmd.c | 361 +++ 1 fi

[dpdk-dev] [PATCH v6 07/11] crypto/scheduler: register operation function pointer table

2017-01-24 Thread Fan Zhang
Implements all standard operations required for cryptodev, and register them to cryptodev operation function pointer table. Signed-off-by: Fan Zhang --- drivers/crypto/scheduler/scheduler_pmd_ops.c | 490 +++ 1 file changed, 490 insertions(+) create mode 100644 drivers

[dpdk-dev] [PATCH v6 08/11] crypto/scheduler: add scheduler PMD to DPDK compile system

2017-01-24 Thread Fan Zhang
Adds Makefile for scheduler cryptodev PMD, and updates existing Makefiles. Different than other cryptodev PMDs, scheduler PMD is required to be built as shared libraries. Signed-off-by: Fan Zhang --- drivers/crypto/Makefile | 3 +- drivers/crypto/scheduler/Makefile | 66

[dpdk-dev] [PATCH v6 10/11] app/test: add unit test for cryptodev scheduler PMD

2017-01-24 Thread Fan Zhang
, the slaves are detached. Signed-off-by: Fan Zhang --- app/test/test_cryptodev.c | 241 +++- app/test/test_cryptodev_aes_test_vectors.h | 101 app/test/test_cryptodev_blockcipher.c | 6 +- app/test/test_cryptodev_blockcipher.h

[dpdk-dev] [PATCH v6 09/11] crypto/scheduler: add scheduler PMD config options

2017-01-24 Thread Fan Zhang
Adds scheduler PMD enable and debug flags to config/common_base. Signed-off-by: Fan Zhang --- config/common_base | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/common_base b/config/common_base index b9fb8e2..cd4a0f3 100644 --- a/config/common_base +++ b/config

[dpdk-dev] [PATCH v6 11/11] crypto/scheduler: add documentation

2017-01-24 Thread Fan Zhang
Adds the description of the cryptodev scheduler PMD overview, limitations, build, instructions, modes, etc. Signed-off-by: Fan Zhang --- doc/guides/cryptodevs/img/scheduler-overview.svg | 277 +++ doc/guides/cryptodevs/index.rst | 3 +- doc/guides

[dpdk-dev] [PATCH v7 00/11] crypto/scheduler: add driver for scheduler crypto pmd

2017-01-24 Thread Fan Zhang
is attached. Also, to configure the scheduler in the run-time, like attach/detach slave(s), change scheduling mode, or enable/disable crypto op ordering, one should stop the scheduler first, otherwise an error will be returned. - Enabling crypto ops reordering will cause overwriting the userdat

[dpdk-dev] [PATCH v7 01/11] cryptodev: add scheduler PMD name and type

2017-01-24 Thread Fan Zhang
This patch adds the cryptodev scheduler PMD name and type identifier to librte_cryptodev. Signed-off-by: Fan Zhang --- lib/librte_cryptodev/rte_cryptodev.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index

[dpdk-dev] [PATCH v7 03/11] crypto/scheduler: add internal structure declarations

2017-01-24 Thread Fan Zhang
Adds a number of internal structures for the cryptodev scheduler PMD. The structures include the scheduler context, slave, queue pair context, and session. Signed-off-by: Fan Zhang Signed-off-by: Declan Doherty --- drivers/crypto/scheduler/scheduler_pmd_private.h | 115

[dpdk-dev] [PATCH v7 04/11] crypto/scheduler: add scheduler API implementations

2017-01-24 Thread Fan Zhang
Adds the implementations of the APIs for scheduler cryptodev PMD. Signed-off-by: Fan Zhang --- drivers/crypto/scheduler/rte_cryptodev_scheduler.c | 464 + 1 file changed, 464 insertions(+) create mode 100644 drivers/crypto/scheduler/rte_cryptodev_scheduler.c diff --git a

[dpdk-dev] [PATCH v7 05/11] crypto/scheduler: add round-robin scheduling mode

2017-01-24 Thread Fan Zhang
Implements round-robin scheduling mode and register into cryptodev scheduler ops structure. This mode enqueues a burst of operation to one of its slaves, and iterates the next burst to the other slave. Same procedure is done on dequeueing operations. Signed-off-by: Fan Zhang Signed-off-by

  1   2   3   4   5   6   7   8   9   >