History log of /spdk/module/accel/dpdk_cryptodev/accel_dpdk_cryptodev.c (Results 1 – 25 of 28)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v25.01-rc1, v24.09, v25.01-pre, v24.09-rc1
# 186b109d 20-Aug-2024 Jim Harris <jim.harris@samsung.com>

env: add SPDK_ENV_NUMA_ID_ANY and replace socket_id with numa_id

We will try to avoid further proliferation of "SOCKET_ID" to refer
to a NUMA socket ID moving forward, and just use "NUMA_ID" to avoi

env: add SPDK_ENV_NUMA_ID_ANY and replace socket_id with numa_id

We will try to avoid further proliferation of "SOCKET_ID" to refer
to a NUMA socket ID moving forward, and just use "NUMA_ID" to avoid
confusion with TCP sockets.

Change all of the existing in-tree SPDK_ENV_SOCKET_ID_ANY uses to
SPDK_ENV_NUMA_ID_ANY, but keep the old #define around, at least for
now. Also change all 'socket_id' parameters to 'numa_id'.

We still have spdk_env_get_socket_id(), we will need to keep this
but next patch will add spdk_env_get_numa_id().

Signed-off-by: Jim Harris <jim.harris@samsung.com>
Change-Id: Idc31c29e32b708c24d88f9c6fecaf9a99e34ba1e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24607
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Ben Walker <ben@nvidia.com>
Community-CI: Mellanox Build Bot

show more ...


# a25d1d33 14-Aug-2024 Diwakar Sharma <diwakar.sharma@datacore.com>

accel/dpdk_cryptodev: allow for 256 bit key size with AES-CBC

Change-Id: I5b10c9eef06e27f19313f786c7bf96609772f2d0
Signed-off-by: Diwakar Sharma <diwakar.sharma@datacore.com>
Reviewed-on: https://re

accel/dpdk_cryptodev: allow for 256 bit key size with AES-CBC

Change-Id: I5b10c9eef06e27f19313f786c7bf96609772f2d0
Signed-off-by: Diwakar Sharma <diwakar.sharma@datacore.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24560
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot

show more ...


# 34edd9f1 10-Jul-2024 Kamil Godzwon <kamilx.godzwon@intel.com>

general: fix misspells and typos

Signed-off-by: Kamil Godzwon <kamilx.godzwon@intel.com>
Change-Id: Iab206ef526eb7032c6681a3145450010c91705a4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+

general: fix misspells and typos

Signed-off-by: Kamil Godzwon <kamilx.godzwon@intel.com>
Change-Id: Iab206ef526eb7032c6681a3145450010c91705a4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24120
Community-CI: Mellanox Build Bot
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Jim Harris <jim.harris@samsung.com>

show more ...


Revision tags: v24.05, v24.09-pre, v24.05-rc1
# 13603217 27-Apr-2024 Zhangfei Gao <zhangfei.gao@linaro.org>

accel/dpdk_cryptodev: Support uadk crypto pmd

Add support of UADK Crypto Poll Mode Driver to accel/dpdk_cryptodev.

Build:
./configure --with-dpdk-uadk --with-crypto
make

Run
./build/bin/spdk_tgt -

accel/dpdk_cryptodev: Support uadk crypto pmd

Add support of UADK Crypto Poll Mode Driver to accel/dpdk_cryptodev.

Build:
./configure --with-dpdk-uadk --with-crypto
make

Run
./build/bin/spdk_tgt -m 0xf0 --wait-for-rpc

./scripts/rpc.py dpdk_cryptodev_scan_accel_module
./scripts/rpc.py dpdk_cryptodev_set_driver -d crypto_uadk
./scripts/rpc.py accel_assign_opc -o encrypt -m dpdk_cryptodev
./scripts/rpc.py accel_assign_opc -o decrypt -m dpdk_cryptodev
./scripts/rpc.py framework_start_init

Change-Id: I73b763bdcf16c172501a3c2e785450401e8d54b2
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22979
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Marcin Spiewak <marcin.spiewak@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>

show more ...


# c618fc30 27-Mar-2024 Zhangfei Gao <zhangfei.gao@linaro.org>

accel/dpdk_cryptodev: rte_vdev_init g_dpdk_cryptodev_driver

Currently only rte_vdev_init ACCEL_DPDK_CRYPTODEV_AESNI_MB,
but other crypto PMD may still need be called by rte_vdev_init.
So use g_drive

accel/dpdk_cryptodev: rte_vdev_init g_dpdk_cryptodev_driver

Currently only rte_vdev_init ACCEL_DPDK_CRYPTODEV_AESNI_MB,
but other crypto PMD may still need be called by rte_vdev_init.
So use g_driver_names[g_dpdk_cryptodev_driver] instead.

Change-Id: Icc137cfbe7cfc6098c7e6cbd2e3b85711303215a
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22607
Community-CI: Mellanox Build Bot
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: LiuQinfei <lucas.liuqinfei@huawei.com>

show more ...


# 1f88c365 23-Feb-2024 Tomasz Zawadzki <tomasz.zawadzki@intel.com>

lib/accel: fallback when no devices during module_init()

Related to #3266

During discussion in issue above, it came up that if
dpdk_compressdev and dpdk_cryptodev detects no devices
they are still

lib/accel: fallback when no devices during module_init()

Related to #3266

During discussion in issue above, it came up that if
dpdk_compressdev and dpdk_cryptodev detects no devices
they are still assigned to the relevant accel ops.

Rather than explicitly failing just due to lack of
the devices, each accel module can report -ENODEV.
In such case the module will not be used, but that
error is not propagated to accel framework init.

As a result accel ops assignment will not use such module,
and fallback to available modules.

Reported-by: liuqinfei <lucas.liuqinfei@huawei.com>
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: Ib52dfcb6dc6a1a93b8493b98ffb028f9d9419d6d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22026
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Jim Harris <jim.harris@samsung.com>

show more ...


Revision tags: LTS, v24.01, v24.05-pre, v24.01-rc1, v23.09, v24.01-pre, v23.09-rc1
# 9f17bf3c 06-Sep-2023 Konrad Sztyber <konrad.sztyber@intel.com>

accel/dpdk_cryptodev: provide buffer alignment requirements

QAT requires the buffers to be aligned to a block size, while other
engines have no such requirements.

Signed-off-by: Konrad Sztyber <kon

accel/dpdk_cryptodev: provide buffer alignment requirements

QAT requires the buffers to be aligned to a block size, while other
engines have no such requirements.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: Iba9f28b0e24ae8b982a247e2cc8879d731a5d3b5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19764
Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <jim.harris@gmail.com>

show more ...


# 5105dc5d 04-Sep-2023 Konrad Sztyber <konrad.sztyber@intel.com>

accel: add the spdk_ prefix to accel_opcode

This enum is part of the public interface, so it should have the spdk_
prefix.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: Ie1d4a

accel: add the spdk_ prefix to accel_opcode

This enum is part of the public interface, so it should have the spdk_
prefix.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: Ie1d4aee707ede70c7f181561e1002ce443628ca4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19685
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <jim.harris@gmail.com>
Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>

show more ...


Revision tags: v23.05
# 7ac8e6c9 25-May-2023 Jacek Kalwas <jacek.kalwas@intel.com>

accel: move aes cbc validation from accel modules to generic layer

This allows to leverage these checks on different accel modules and
not duplicate the code.

Signed-off-by: Jacek Kalwas <jacek.kal

accel: move aes cbc validation from accel modules to generic layer

This allows to leverage these checks on different accel modules and
not duplicate the code.

Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com>
Change-Id: I0096df0df1385c11ae1d92259fdc08ae39108c5d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18198
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Community-CI: Mellanox Build Bot

show more ...


Revision tags: v23.09-pre
# 47f8f398 17-May-2023 Jacek Kalwas <jacek.kalwas@intel.com>

accel: add key size to cipher support check

Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com>
Change-Id: I9e26405a1389ed4573ef3d32f4c99031c8d81c96
Reviewed-on: https://review.spdk.io/gerrit/c/spd

accel: add key size to cipher support check

Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com>
Change-Id: I9e26405a1389ed4573ef3d32f4c99031c8d81c96
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18197
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>

show more ...


# 0db4d79d 17-May-2023 Jacek Kalwas <jacek.kalwas@intel.com>

accel: introduce function to check cipher support

Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com>
Change-Id: I99cb720d4b5780b5147a9ef91ab23dba9ff89d41
Reviewed-on: https://review.spdk.io/gerrit

accel: introduce function to check cipher support

Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com>
Change-Id: I99cb720d4b5780b5147a9ef91ab23dba9ff89d41
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18196
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 9cd94384 17-May-2023 Jacek Kalwas <jacek.kalwas@intel.com>

accel: introduce cipher enum

Enum is introduced so accel crypto modules doesn't need to define
such on its own, moreover logic is simplified as module doesn't
need to operate on c-string but simple

accel: introduce cipher enum

Enum is introduced so accel crypto modules doesn't need to define
such on its own, moreover logic is simplified as module doesn't
need to operate on c-string but simple enum type.

Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com>
Change-Id: Iaa8481ee4818f999300043f86b6576876f9ed6a6
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18195
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>

show more ...


Revision tags: v23.01.1
# 2f4332f5 09-Apr-2023 Jacek Kalwas <jacek.kalwas@intel.com>

accel: move aes xts validation from accel modules to generic layer

This allows to leverage these checks on different accel modules and
not duplicate the code.

Signed-off-by: Jacek Kalwas <jacek.kal

accel: move aes xts validation from accel modules to generic layer

This allows to leverage these checks on different accel modules and
not duplicate the code.

Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com>
Change-Id: Ia8e7a4d6caac49bfa8fe65d57b398137f1225a53
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17529
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Community-CI: Mellanox Build Bot

show more ...


# d20ae7ff 16-May-2023 Alexey Marchuk <alexeymar@nvidia.com>

accel/dpdk_cryptodev: Update mlx5_pci key config

Wrapped cyrpto credentilas mode is not longer supported.
When NIC is in this mode, xts keys are 48 and 80
bytes for 128b and 256b keys.
Plain text mo

accel/dpdk_cryptodev: Update mlx5_pci key config

Wrapped cyrpto credentilas mode is not longer supported.
When NIC is in this mode, xts keys are 48 and 80
bytes for 128b and 256b keys.
Plain text mode uses standard keys of 32 and 64 bytes.
Nvidia NIC must be re-configured to work in plain text
mode if it was in the wrapped crypto credentails mode.
Wrong key size 512b was used, mlx5_pci supports only
128b or 256b. Now key and key2 length must be equal.
blockdev.sh scripts was updated accordingly.

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: I9f67e0074acb5219ee3f53840e158a011b233cdd
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18175
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# a347d3e7 20-Apr-2023 Alexey Marchuk <alexeymar@nvidia.com>

accel/dpdk_cryptodev: Fix use of uninitialized variable

rc might be not initialized and it was not correct to
use it in this place.

Fixes 6b7cca1542b accel/dpdk_cryptodev: Handle OP_STATUS_SUCCESS

accel/dpdk_cryptodev: Fix use of uninitialized variable

rc might be not initialized and it was not correct to
use it in this place.

Fixes 6b7cca1542b accel/dpdk_cryptodev: Handle OP_STATUS_SUCCESS

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: Ifd2b3032afd6830bd851adb61f68ae4fa9621d33
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17656
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 5d2d59be 29-Mar-2023 Konrad Sztyber <konrad.sztyber@intel.com>

accel: move accel_module.h to include/spdk

This file should be external to enable out-of-tree accel modules.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I2e973d0e88d7145d0fc

accel: move accel_module.h to include/spdk

This file should be external to enable out-of-tree accel modules.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I2e973d0e88d7145d0fc9714f56db48486b00f3b7
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17419
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>

show more ...


# 6b7cca15 01-Mar-2023 Alexey Marchuk <alexeymar@nvidia.com>

accel/dpdk_cryptodev: Handle OP_STATUS_SUCCESS

SW PMD might process a crypto operation but failed
to submit it to a completions ring.
Such operation can't be retried if crypto operation
is inplace.

accel/dpdk_cryptodev: Handle OP_STATUS_SUCCESS

SW PMD might process a crypto operation but failed
to submit it to a completions ring.
Such operation can't be retried if crypto operation
is inplace.
Handle such crypto op as a completed.
Verified by integrating rte openssl driver and
adding additional logs to check that SUCCESS
status received and completed as expected.

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: Ida161cec045167af752ebd5b57f41b2bbfe8b97c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16995
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 9c636a02 12-Feb-2023 Alexey Marchuk <alexeymar@nvidia.com>

accel/dpdk_cryptodev: Remove queued_cry_ops

If we were not able to submit all configured
crypto ops, then we can just release crypto_ops
and mbuf object of these crypto ops and save
the actual numbe

accel/dpdk_cryptodev: Remove queued_cry_ops

If we were not able to submit all configured
crypto ops, then we can just release crypto_ops
and mbuf object of these crypto ops and save
the actual number of submitted operation in
the accel task. Once all submitted operations
complete, poller will call
accel_dpdk_cryptodev_process_task func to submit
cyrpto operations for reamining data blocks.
If no crypto ops were submitted then the task
will be palced in the channel's queued_tasks
and poller will try to resubmit the task.
That in theory should increase performance
since we attempted to resubmit queued ops
with burst size==1 which is not efficient

Fixes issue #2907

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: I4d17e8ed1ad5383848e4d09c46009c6cb2834360
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16784
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>

show more ...


# 8f4d98bb 03-Apr-2023 Alexey Marchuk <alexeymar@nvidia.com>

accel/dpdk_cryptodev: Fix sgl init with offset

When accel task is processed is processed in
several iterations (submit part of cryops, wait
for completion and submit next part of cryops),
sgl is ini

accel/dpdk_cryptodev: Fix sgl init with offset

When accel task is processed is processed in
several iterations (submit part of cryops, wait
for completion and submit next part of cryops),
sgl is initialized with offset to exclude previously
processed blocks. However there is a bug since
spdk_iov_sgl_init doesn't advance iovs, as result
when we do sgl->iov->iov_len - sgl->iov_offset,
we may get unsigned int underflow.
Fix is init sgl with 0 offset and then advance it
with offset.
Modified unit test and added an assert in code to
verify this fix.

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: Ib53ff30f0c90d521f2cf6b3ec847b0d06869c2b5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17456
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>

show more ...


Revision tags: v23.01, v23.05-pre, v23.01-rc1
# 52c86e21 20-Jan-2023 Alexey Marchuk <alexeymar@nvidia.com>

accel/dpdk_cryptodev: Remove missed noticelog

This was added during debug/development and
was not deleted by accident.

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: I146748151623a

accel/dpdk_cryptodev: Remove missed noticelog

This was added during debug/development and
was not deleted by accident.

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: I146748151623a3ea4808c7b5cc34085d30ca81b4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16388
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


Revision tags: v22.01.2, v22.09, v23.01-pre, v22.09-rc1
# 13f97e67 31-Aug-2022 Alexey Marchuk <alexeymar@nvidia.com>

bdev/crypto: Use accel framework

All DPDK related code is removed, handling of
RESET command was sligthly updated.
Handling of -ENOMEM was updated for cases when
accel API returns -ENOMEM

Crypto te

bdev/crypto: Use accel framework

All DPDK related code is removed, handling of
RESET command was sligthly updated.
Handling of -ENOMEM was updated for cases when
accel API returns -ENOMEM

Crypto tests in blockdev.sh were extended with more
crypto_bdevs to verify NOMEM cases - that failed
with original vbdev_crypto implementation

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: If1feba2449bee852c6c4daca4b3406414db6fded
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14860
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>

show more ...


# 6da98786 17-Jan-2023 Alexey Marchuk <alexeymar@nvidia.com>

accel/dpdk_cryptodev: Fix io_dev unregister

It was found that if system has no crypto devs,
we exit earlier from init function and don't register
io_device. Later in fini function we may try to unre

accel/dpdk_cryptodev: Fix io_dev unregister

It was found that if system has no crypto devs,
we exit earlier from init function and don't register
io_device. Later in fini function we may try to unregister
invalid io_device

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: I23ac9674c02d4fe97f01c66928a5ec5a2b39ec47
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16321
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>

show more ...


# 10dcf2db 20-Dec-2022 Alexey Marchuk <alexeymar@nvidia.com>

accel/dpdk_cryptodev: Update rte_cryptodev usage for DPDK 22.11

This patch is a combination of commits which update vdev_crypto:

110d8411e bdev/crypto: do not create mempool for session private dat

accel/dpdk_cryptodev: Update rte_cryptodev usage for DPDK 22.11

This patch is a combination of commits which update vdev_crypto:

110d8411e bdev/crypto: do not create mempool for session private data
495055b05 bdev/crypto: update rte_cryptodev usage for DPDK 22.11
02caed6b5 bdev/crypto: remove mempool usage matching < DPDK 19.02
5887eb321 bdev/crypto: do not track type of crypto session

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: I30c4f76e4e7b4865a7daa638d357888bb5e02071
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16039
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>

show more ...


# 8f36853a 02-Dec-2022 Alexey Marchuk <alexeymar@nvidia.com>

dpdk_cryptodev: Check queue capacity before submitting a task

When we submit more tasks than supported by qp,
extra tasks are queued on io_channel. Later completion
poller tries to resubmit these ta

dpdk_cryptodev: Check queue capacity before submitting a task

When we submit more tasks than supported by qp,
extra tasks are queued on io_channel. Later completion
poller tries to resubmit these tasks one by one. That
is not efficient since every enqueu_burst may cause
doorbell updates in HW.

Instead add a check for qpir capacity and submit
appropriate number of requests. If qpair is full,
tasks are queued in dedicated list. This approach
should remove or minimize the need to resubmit
individual crypto operations.

This also handles a case where there are no entries
in global pools (crypto_ops or rte_mbuf)

Fixes issue #2756

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: Iab50e623e7a82a4f5bef7a1e4434e593240ab633
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15769
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>

show more ...


# bf8e0656 02-Dec-2022 Alexey Marchuk <alexeymar@nvidia.com>

dpdk_cryptodev: Remove limit on max IO size

Previously vbdev_crypto used DPDK directly and
the restriction on max IO size was propagated to
generic bdev layer which split big IO requests.

Now, when

dpdk_cryptodev: Remove limit on max IO size

Previously vbdev_crypto used DPDK directly and
the restriction on max IO size was propagated to
generic bdev layer which split big IO requests.

Now, when DPDK code is a standalone accel module,
this restriction on max IO size is not visible to
the user and we should get rid of it.

To remove this limitation, allow to submit crypto
operations for part of logical blocks in big IO,
the rest blocks will be processed when all submitted
crypto ops are completed.

To verify this patch, add a functional test which
submits big IO verify mode

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: I0ee89e98195a5c744f3fb2bfc752b578965c3bc5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15768
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>

show more ...


12