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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
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
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
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
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
-
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
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
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
-
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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 - 100 of 810 matches
Mail list logo