Re: [EXTERNAL] [PATCH v5 1/2] compress/uadk: use async mode to replace sync mode

2025-07-09 Thread Zhangfei Gao
mode to replace sync mode > > > > > > > > > > > > Signed-off-by: Zhangfei Gao > > > > > > --- > > > > > > doc/guides/compressdevs/uadk.rst | 15 +++ > > > > > > drivers/compress/uad

Re: [EXTERNAL] [PATCH v5 1/2] compress/uadk: use async mode to replace sync mode

2025-07-09 Thread Zhangfei Gao
On Wed, 9 Jul 2025 at 18:03, Akhil Goyal wrote: > > > On Wed, 9 Jul 2025 at 15:19, Akhil Goyal wrote: > > > > > > > To get better performance, using async mode to replace sync mode > > > > > > > > Signed-off-by: Zhangfei Gao

Re: [EXTERNAL] [PATCH v5 1/2] compress/uadk: use async mode to replace sync mode

2025-07-09 Thread Zhangfei Gao
On Wed, 9 Jul 2025 at 15:19, Akhil Goyal wrote: > > > To get better performance, using async mode to replace sync mode > > > > Signed-off-by: Zhangfei Gao > > --- > > doc/guides/compressdevs/uadk.rst | 15 +++ > > drivers/compress/uadk/meson

Re: [EXTERNAL] [PATCH v4 2/2] crypto/uadk: use async mode to replace sync mode

2025-07-08 Thread Zhangfei Gao
t; the second operation since the dependence. > > > > Also RTE_CRYPTO_AUTH_OP_VERIFY will hold the generated auth in > > qp->temp_digest[idx % BURST_MAX] to verify later. > > > > Signed-off-by: Zhangfei Gao > > --- > > doc/guides/cryptodevs/uadk.rst

[PATCH v5 2/2] crypto/uadk: use async mode to replace sync mode

2025-07-08 Thread Zhangfei Gao
in qp->temp_digest[idx % BURST_MAX] to verify later. Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/uadk.rst| 15 + doc/guides/rel_notes/release_25_07.rst| 5 + drivers/crypto/uadk/meson.build | 4 +- drivers/crypto/uadk/uadk_crypto_pm

[PATCH v5 1/2] compress/uadk: use async mode to replace sync mode

2025-07-08 Thread Zhangfei Gao
To get better performance, using async mode to replace sync mode Signed-off-by: Zhangfei Gao --- doc/guides/compressdevs/uadk.rst | 15 +++ drivers/compress/uadk/meson.build | 4 +- drivers/compress/uadk/uadk_compress_pmd.c | 94 ++- .../compress

[PATCH v5 0/2] uadk: realize async mode

2025-07-08 Thread Zhangfei Gao
release notes Zhangfei Gao (2): compress/uadk: use async mode to replace sync mode crypto/uadk: use async mode to replace sync mode doc/guides/compressdevs/uadk.rst | 15 + doc/guides/cryptodevs/uadk.rst| 15 + doc/guides/rel_notes/release_25_07.rst|

Re: [EXTERNAL] [PATCH v3 0/2] uadk: realize async mode

2025-07-01 Thread Zhangfei Gao
On Mon, 30 Jun 2025 at 18:15, Akhil Goyal wrote: > > > Hi, Akhil > > > > On Mon, 30 Jun 2025 at 17:04, Akhil Goyal wrote: > > > > > > > > > make[2]: Entering directory '/home/gakhil/up/uadk' > > > > > > depbase=`echo wd_alg.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ > > > > > > /bin/bash ./libtool

[PATCH v4 1/2] compress/uadk: use async mode to replace sync mode

2025-07-01 Thread Zhangfei Gao
To get better performance, using async mode to replace sync mode Signed-off-by: Zhangfei Gao --- doc/guides/compressdevs/uadk.rst | 15 +++ drivers/compress/uadk/meson.build | 4 +- drivers/compress/uadk/uadk_compress_pmd.c | 94 ++- .../compress

[PATCH v4 2/2] crypto/uadk: use async mode to replace sync mode

2025-07-01 Thread Zhangfei Gao
in qp->temp_digest[idx % BURST_MAX] to verify later. Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/uadk.rst| 15 + doc/guides/rel_notes/release_25_07.rst| 5 + drivers/crypto/uadk/meson.build | 4 +- drivers/crypto/uadk/uadk_crypto_pm

[PATCH v4 0/2] uadk: realize async mode

2025-07-01 Thread Zhangfei Gao
: "duplicate label table_uadk_versions" v2: Add version check, requires uadk >= 2.9 Add version table describing DPDK and external UADK library version compatibility Mention version dependence in release notes Zhangfei Gao (2): compress/uadk: use async mode to replace sync mode

Re: [EXTERNAL] [PATCH v3 0/2] uadk: realize async mode

2025-06-30 Thread Zhangfei Gao
Hi, Akhil On Mon, 30 Jun 2025 at 17:04, Akhil Goyal wrote: > > > > > make[2]: Entering directory '/home/gakhil/up/uadk' > > > > depbase=`echo wd_alg.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ > > > > /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > > > > - > > Wall -Wer

Re: [EXTERNAL] [PATCH v3 0/2] uadk: realize async mode

2025-06-28 Thread Zhangfei Gao
On Fri, 27 Jun 2025 at 23:41, Zhangfei Gao wrote: > > On Wed, 25 Jun 2025 at 20:14, Akhil Goyal wrote: > > > > > Realize async mode to replace sync mode for better performance > > > > > > v3: > > > uadk 2.9 is released > > > use differen

Re: [EXTERNAL] [PATCH v3 0/2] uadk: realize async mode

2025-06-27 Thread Zhangfei Gao
On Wed, 25 Jun 2025 at 20:14, Akhil Goyal wrote: > > > Realize async mode to replace sync mode for better performance > > > > v3: > > uadk 2.9 is released > > use different label name to fix build warning: > > "duplicate label table_uadk_versions" > > I am unable to build uadk x86. It seems

[PATCH v3 2/2] crypto/uadk: use async mode to replace sync mode

2025-06-19 Thread Zhangfei Gao
in qp->temp_digest[idx % BURST_MAX] to verify later. Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/uadk.rst| 15 + doc/guides/rel_notes/release_25_07.rst| 5 + drivers/crypto/uadk/meson.build | 4 +- drivers/crypto/uadk/uadk_crypto_pm

[PATCH v3 1/2] compress/uadk: use async mode to replace sync mode

2025-06-19 Thread Zhangfei Gao
To get better performance, using async mode to replace sync mode Signed-off-by: Zhangfei Gao --- doc/guides/compressdevs/uadk.rst | 15 +++ drivers/compress/uadk/meson.build | 4 +- drivers/compress/uadk/uadk_compress_pmd.c | 94 ++- .../compress

[PATCH v3 0/2] uadk: realize async mode

2025-06-19 Thread Zhangfei Gao
UADK library version compatibility Mention version dependence in release notes Zhangfei Gao (2): compress/uadk: use async mode to replace sync mode crypto/uadk: use async mode to replace sync mode doc/guides/compressdevs/uadk.rst | 15 + doc/guides/cryptodevs/uadk.rst

Re: [EXTERNAL] [PATCH v2 0/2] uadk: realize async mode

2025-06-19 Thread Zhangfei Gao
On Wed, 18 Jun 2025 at 05:13, Akhil Goyal wrote: > > > Realize async mode to replace sync mode for better performance > > > > v2: > > Add version check, requires uadk >= 2.9 > > This version DO NOT exist as of now. Sorry, Akhil The tag 2.9 was just released today And will send v3 with different

Re: [EXTERNAL] [PATCH 0/2] uadk: realize async mode

2025-06-15 Thread Zhangfei Gao
On Wed, 4 Jun 2025 at 23:29, Akhil Goyal wrote: > > > > On Mon, 26 May 2025 at 14:15, Akhil Goyal wrote: > > > > > > > > DPDK deprecation notice need not include API changes in external > > > libraries. > > > We just need to notify the users about the version of ZSDA external lib > > > is going

[PATCH v2 2/2] crypto/uadk: use async mode to replace sync mode

2025-06-15 Thread Zhangfei Gao
in qp->temp_digest[idx % BURST_MAX] to verify later. Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/uadk.rst| 15 + doc/guides/rel_notes/release_25_07.rst| 5 + drivers/crypto/uadk/meson.build | 4 +- drivers/crypto/uadk/uadk_crypto_pm

[PATCH v2 1/2] compress/uadk: use async mode to replace sync mode

2025-06-15 Thread Zhangfei Gao
To get better performance, using async mode to replace sync mode Signed-off-by: Zhangfei Gao --- doc/guides/compressdevs/uadk.rst | 15 +++ drivers/compress/uadk/meson.build | 4 +- drivers/compress/uadk/uadk_compress_pmd.c | 94 ++- .../compress

[PATCH v2 0/2] uadk: realize async mode

2025-06-15 Thread Zhangfei Gao
Realize async mode to replace sync mode for better performance v2: Add version check, requires uadk >= 2.9 Add version table describing DPDK and external UADK library version compatibility Mention version dependence in release notes Zhangfei Gao (2): compress/uadk: use async mode

Re: [EXTERNAL] [PATCH 0/2] uadk: realize async mode

2025-06-04 Thread Zhangfei Gao
On Mon, 26 May 2025 at 14:15, Akhil Goyal wrote: > > DPDK deprecation notice need not include API changes in external libraries. > We just need to notify the users about the version of ZSDA external lib is > going to change in next release or so. > And then we can change the code. > > You can re

Re: [EXTERNAL] [PATCH 0/2] uadk: realize async mode

2025-05-25 Thread Zhangfei Gao
On Thu, 22 May 2025 at 19:50, Akhil Goyal wrote: > > > Hi, Akhil > > > > On Wed, 21 May 2025 at 20:39, Akhil Goyal wrote: > > > > > > > Realize async mode to replace sync mode for better performance > > > > > > > > Zhangfei Gao

Re: [EXTERNAL] [PATCH 0/2] uadk: realize async mode

2025-05-22 Thread Zhangfei Gao
Hi, Akhil On Wed, 21 May 2025 at 20:39, Akhil Goyal wrote: > > > Realize async mode to replace sync mode for better performance > > > > Zhangfei Gao (2): > > compress/uadk: use async mode to replace sync mode > > crypto/uadk: use async mode to replace sync mo

[PATCH 2/2] crypto/uadk: use async mode to replace sync mode

2025-05-08 Thread Zhangfei Gao
in qp->temp_digest[idx % BURST_MAX] to verify later. Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 321 +- drivers/crypto/uadk/uadk_crypto_pmd_private.h | 8 +- 2 files changed, 236 insertions(+), 93 deletions(-) diff --git a/drivers/crypto/u

[PATCH 1/2] compress/uadk: use async mode to replace sync mode

2025-05-08 Thread Zhangfei Gao
To get better performance, using async mode to replace sync mode Signed-off-by: Zhangfei Gao --- drivers/compress/uadk/uadk_compress_pmd.c | 107 +- .../compress/uadk/uadk_compress_pmd_private.h | 2 +- 2 files changed, 82 insertions(+), 27 deletions(-) diff --git a

[PATCH 0/2] uadk: realize async mode

2025-05-08 Thread Zhangfei Gao
Realize async mode to replace sync mode for better performance Zhangfei Gao (2): compress/uadk: use async mode to replace sync mode crypto/uadk: use async mode to replace sync mode drivers/compress/uadk/uadk_compress_pmd.c | 107 -- .../compress/uadk/uadk_compress_pmd_private.h

Re: [EXTERNAL] [PATCH v3 0/3] Introduce UADK compression driver

2024-06-13 Thread Zhangfei Gao
-perf -l 1,2 --vdev compress_uadk \ > > -- --driver-name compress_uadk --input-file data > > > > v3: add the missing doc uadk.ini and change some docs to patch1 > > > > v2: > > remove mempool and simply use rte_malloc, suggested by Akhil > > move doc to patc

[PATCH v3 3/3] compress/uadk: support burst enqueue/dequeue

2024-06-11 Thread Zhangfei Gao
This commit adds the burst enqueue and dequeue operations, Test: sudo dpdk-test --vdev=compress_uadk RTE>>compressdev_autotest RTE>>quit Signed-off-by: Zhangfei Gao --- doc/guides/compressdevs/uadk.rst | 19 + doc/guides/rel_notes/release_24_07.rst| 5 ++ driv

[PATCH v3 2/3] compress/uadk: support basic operations

2024-06-11 Thread Zhangfei Gao
Support the basic dev control operations: configure, close, start, stop, infos_get, and queue pairs operations, etc. Signed-off-by: Zhangfei Gao --- drivers/compress/uadk/uadk_compress_pmd.c | 279 +- .../compress/uadk/uadk_compress_pmd_private.h | 16 + 2 files changed

[PATCH v3 1/3] compress/uadk: Introduce UADK compression driver

2024-06-11 Thread Zhangfei Gao
user application can directly use the virtual address for the device DMA, which enhances the performance as well as easy usability. This patch adds the basic framework. [1] https://github.com/Linaro/uadk Signed-off-by: Zhangfei Gao --- MAINTAINERS | 6 ++ doc/gu

[PATCH v3 0/3] Introduce UADK compression driver

2024-06-11 Thread Zhangfei Gao
f=data bs=1M count=1; sudo dpdk-test-compress-perf -l 1,2 --vdev compress_uadk \ -- --driver-name compress_uadk --input-file data v3: add the missing doc uadk.ini and change some docs to patch1 v2: remove mempool and simply use rte_malloc, suggested by Akhil move doc to patch 3 from patch

Re: [EXTERNAL] [PATCH v2 3/3] compress/uadk: support burst enqueue/dequeue

2024-06-07 Thread Zhangfei Gao
Hi, Akhil On Fri, 7 Jun 2024 at 19:49, Akhil Goyal wrote: > > > This commit adds the burst enqueue and dequeue operations, > > and adds compressdev uadk info to doc > > > > Signed-off-by: Zhangfei Gao > > --- > > MAINTAINERS

[PATCH v2 3/3] compress/uadk: support burst enqueue/dequeue

2024-05-25 Thread Zhangfei Gao
This commit adds the burst enqueue and dequeue operations, and adds compressdev uadk info to doc Signed-off-by: Zhangfei Gao --- MAINTAINERS | 6 ++ doc/guides/compressdevs/index.rst | 1 + doc/guides/compressdevs/uadk.rst | 98

[PATCH v2 2/3] compress/uadk: support basic operations

2024-05-25 Thread Zhangfei Gao
Support the basic dev control operations: configure, close, start, stop, infos_get, and queue pairs operations, etc. Signed-off-by: Zhangfei Gao --- drivers/compress/uadk/uadk_compress_pmd.c | 279 +- .../compress/uadk/uadk_compress_pmd_private.h | 16 + 2 files changed

[PATCH v2 1/3] compress/uadk: Introduce UADK compression driver

2024-05-25 Thread Zhangfei Gao
k Signed-off-by: Zhangfei Gao --- drivers/compress/meson.build | 1 + drivers/compress/uadk/meson.build | 30 drivers/compress/uadk/uadk_compress_pmd.c | 75 +++ .../compress/uadk/uadk_compress_pmd_private.h | 20 + 4 files changed

[PATCH v2 0/3] Introduce UADK compression driver

2024-05-25 Thread Zhangfei Gao
f=data bs=1M count=1; sudo dpdk-test-compress-perf -l 1,2 --vdev compress_uadk \ -- --driver-name compress_uadk --input-file data v2: remove mempool and simply use rte_malloc, suggested by Akhil move doc to patch 3 from patch 1 Zhangfei Gao (3): compress/uadk: Introduce UADK compre

Re: [EXTERNAL] [PATCH 2/3] compress/uadk: support basic operations

2024-05-24 Thread Zhangfei Gao
On Fri, 24 May 2024 at 18:20, Akhil Goyal wrote: > > > > > +static int > > > > +uadk_compress_pmd_config(struct rte_compressdev *dev, > > > > + struct rte_compressdev_config *config) > > > > +{ > > > > + char mp_name[RTE_MEMPOOL_NAMESIZE]; > > > > + struct uadk_compres

Re: [EXTERNAL] [PATCH 2/3] compress/uadk: support basic operations

2024-05-24 Thread Zhangfei Gao
Hi, Akhil Thanks for your time. On Thu, 23 May 2024 at 23:38, Akhil Goyal wrote: > > Hi Zhangfei, > > Overall, a well written driver. > Please see below comment. > > > +static int > > +uadk_compress_pmd_config(struct rte_compressdev *dev, > > + struct rte_compressdev_config

Re: [PATCH 1/3] compress/uadk: Introduce UADK compression driver

2024-05-24 Thread Zhangfei Gao
On Fri, 24 May 2024 at 00:30, Konstantin Ananyev wrote: > > > > > -Original Message- > > From: Stephen Hemminger > > Sent: Thursday, May 23, 2024 5:21 PM > > To: Zhangfei Gao > > Cc: Akhil Goyal ; Fan Zhang ; > > Ashish Gupta ; > >

Re: [PATCH 0/3] Introduce UADK compression driver

2024-05-10 Thread Zhangfei Gao
On Mon, 22 Apr 2024 at 22:31, Zhangfei Gao wrote: > > Introduce a new compress PMD for hardware accelerators based on UADK [1]. > > UADK is a framework for user applications to access hardware accelerators. > UADK relies on IOMMU SVA (Shared Virtual Address) feature, which share

[PATCH 3/3] compress/uadk: support burst enqueue/dequeue

2024-04-22 Thread Zhangfei Gao
This commit adds the burst enqueue and dequeue operations. Signed-off-by: Zhangfei Gao --- drivers/compress/uadk/uadk_compress_pmd.c | 88 ++- 1 file changed, 86 insertions(+), 2 deletions(-) diff --git a/drivers/compress/uadk/uadk_compress_pmd.c b/drivers/compress/uadk

[PATCH 2/3] compress/uadk: support basic operations

2024-04-22 Thread Zhangfei Gao
Support the basic dev control operations: configure, close, start, stop, infos_get, and queue pairs operations, etc. Signed-off-by: Zhangfei Gao --- drivers/compress/uadk/uadk_compress_pmd.c | 325 +- .../compress/uadk/uadk_compress_pmd_private.h | 16 + 2 files changed

[PATCH 1/3] compress/uadk: Introduce UADK compression driver

2024-04-22 Thread Zhangfei Gao
k Signed-off-by: Zhangfei Gao --- MAINTAINERS | 6 ++ doc/guides/compressdevs/features/uadk.ini | 11 +++ doc/guides/compressdevs/index.rst | 1 + doc/guides/compressdevs/uadk.rst | 98 +++ doc/guides/rel_notes/r

[PATCH 0/3] Introduce UADK compression driver

2024-04-22 Thread Zhangfei Gao
f=data bs=1M count=1; sudo dpdk-test-compress-perf -l 1,2 --vdev compress_uadk \ -- --driver-name compress_uadk --input-file data Zhangfei Gao (3): compress/uadk: Introduce UADK compression driver compress/uadk: support basic operations compress/uadk: support burst enqueue/dequeue

Re: [PATCH] bus/uacce: introduce UACCE bus

2024-01-10 Thread Zhangfei Gao
s.kernel.org/misc-devices/uacce.html > > Signed-off-by: Chengwen Feng Good job. Acked-by: Zhangfei Gao

Re: [EXT] Re: [PATCH v2 resend] crypto/uadk: set queue pair in dev_configure

2023-06-09 Thread Zhangfei Gao
在 2023/6/9 16:31, Akhil Goyal 写道: Hi, Akhil 在 2023/6/2 11:04, Zhangfei Gao 写道: By default, uadk only alloc two queues for each algorithm, which will impact performance. Set queue pair number as required in dev_configure. The default max queue pair number is 8, which can be modified via para

Re: [PATCH v2 resend] crypto/uadk: set queue pair in dev_configure

2023-06-08 Thread Zhangfei Gao
Hi, Akhil 在 2023/6/2 11:04, Zhangfei Gao 写道: By default, uadk only alloc two queues for each algorithm, which will impact performance. Set queue pair number as required in dev_configure. The default max queue pair number is 8, which can be modified via para: max_nb_queue_pairs Example: sudo

[PATCH v2 resend] crypto/uadk: set queue pair in dev_configure

2023-06-01 Thread Zhangfei Gao
,max_nb_queue_pairs=10 -- --devtype crypto_uadk --optype cipher-only --buffer-sz 8192 Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/uadk.rst| 27 +++ drivers/crypto/uadk/uadk_crypto_pmd.c | 18 +++-- drivers/crypto/uadk

[PATCH v2] crypto/uadk: set queue pair in dev_configure

2023-04-23 Thread Zhangfei Gao
,max_nb_queue_pairs=10 -- --devtype crypto_uadk --optype cipher-only --buffer-sz 8192 Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/uadk.rst| 27 +++ drivers/crypto/uadk/uadk_crypto_pmd.c | 18 +++-- drivers/crypto/uadk

Re: [EXT] [PATCH] crypto/uadk: set queue pair in dev_configure

2023-04-22 Thread Zhangfei Gao
.22 > >98192 327.5223 871.23 > >28192 327.5222 871.23 > >88192 327.5222 871.23 > > 6 8192 327.5218 871.28 > &g

[PATCH] crypto/uadk: set queue pair in dev_configure

2023-04-19 Thread Zhangfei Gao
28192 327.5222 871.23 88192 327.5222 871.23 68192 327.5218 871.28 Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 19

questions about crypto_scheduler

2022-12-15 Thread Zhangfei Gao
Hi, Akhil Excuse me for the question. I am testing UADK crypto performance with dpdk-test-crypto-perf, and want to use multi-thread or multi-session for better performance, so trying to use crypto_scheduler. CMD like sudo dpdk-test-crypto-perf -l 1,2 --vdev "crypto_uadk0" --vdev "crypto_uad

Re: [PATCH] doc: avoid meson deprecation in setup

2022-11-15 Thread Zhangfei Gao
p [options]` is ambiguous and deprecated. Therefore fix the examples in the documentation. Signed-off-by: Stephen Hemminger Thanks Stephen For doc/guides/cryptodevs/uadk.rst Acked-by: Zhangfei Gao It will be great if updating https://core.dpdk.org/doc/quick-start/ as well, here is what I le

Re: [EXT] [PATCH v7 0/6] crypto/uadk: introduce uadk crypto driver

2022-10-27 Thread Zhangfei Gao
into small (individually compiled) patches. Update MAINTAINERS and doc/guides/cryptodevs/features/uadk.ini Zhangfei Gao (6): crypto/uadk: introduce uadk crypto driver crypto/uadk: support basic operations crypto/uadk: support enqueue/dequeue operations crypto/uadk: support cipher algorit

Re: [EXT] [PATCH v6 5/6] crypto/uadk: support auth algorithms

2022-10-26 Thread Zhangfei Gao
On 2022/10/26 下午11:43, Akhil Goyal wrote: + { /* SHA384 HMAC */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, + {.auth = { + .algo =

[PATCH v7 6/6] test/crypto: support uadk PMD

2022-10-26 Thread Zhangfei Gao
Example: sudo dpdk-test --vdev=crypto_uadk --log-level=6 RTE>>cryptodev_uadk_autotest RTE>>quit Signed-off-by: Zhangfei Gao --- app/test/meson.build | 1 + app/test/test_cryptodev.c | 7 +++ app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/uadk.rst | 3

[PATCH v7 5/6] crypto/uadk: support auth algorithms

2022-10-26 Thread Zhangfei Gao
Add support for MD5, SHA1, SHA224, SHA256, SHA384, SHA512 Authentication algorithms with and without HMAC. Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/features/uadk.ini | 12 + doc/guides/cryptodevs/uadk.rst| 15 + drivers/crypto/uadk/uadk_crypto_pmd.c

[PATCH v7 4/6] crypto/uadk: support cipher algorithms

2022-10-26 Thread Zhangfei Gao
Add support for cipher algorithms, including AES_ECB, AES_CBC, AES_XTS, and DES_CBC mode. Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/features/uadk.ini | 10 + doc/guides/cryptodevs/uadk.rst| 6 + drivers/crypto/uadk/uadk_crypto_pmd.c | 303

[PATCH v7 3/6] crypto/uadk: support enqueue/dequeue operations

2022-10-26 Thread Zhangfei Gao
This commit adds the enqueue and dequeue operations. Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 53 ++- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/uadk/uadk_crypto_pmd.c b/drivers/crypto/uadk

[PATCH v7 2/6] crypto/uadk: support basic operations

2022-10-26 Thread Zhangfei Gao
Support the basic dev control operations: configure, close, start, stop and get info, as well as queue pairs operations. Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 194 +- drivers/crypto/uadk/uadk_crypto_pmd_private.h | 19 ++ 2 files

[PATCH v7 1/6] crypto/uadk: introduce uadk crypto driver

2022-10-26 Thread Zhangfei Gao
directly use virtual address for device dma, which enhances the performance as well as easy usability. This patch adds the basic framework. [1] https://github.com/Linaro/uadk Signed-off-by: Zhangfei Gao --- MAINTAINERS | 6 + doc/guides/cryptodevs/features/uadk.ini

[PATCH v7 0/6] crypto/uadk: introduce uadk crypto driver

2022-10-26 Thread Zhangfei Gao
y compiled) patches. Update MAINTAINERS and doc/guides/cryptodevs/features/uadk.ini Zhangfei Gao (6): crypto/uadk: introduce uadk crypto driver crypto/uadk: support basic operations crypto/uadk: support enqueue/dequeue operations crypto/uadk: support cipher algorithms crypto/uadk: sup

[PATCH v6 6/6] test/crypto: support uadk PMD

2022-10-26 Thread Zhangfei Gao
Example: sudo dpdk-test --vdev=crypto_uadk --log-level=6 RTE>>cryptodev_uadk_autotest RTE>>quit Signed-off-by: Zhangfei Gao --- app/test/meson.build | 1 + app/test/test_cryptodev.c | 7 +++ app/test/test_cryptodev.h | 1 + doc/guides/cryptodevs/uadk.rst | 3

[PATCH v6 5/6] crypto/uadk: support auth algorithms

2022-10-26 Thread Zhangfei Gao
Add support for MD5, SHA1, SHA224, SHA256, SHA384, SHA512 Authentication algorithms with and without HMAC. Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/features/uadk.ini | 12 + doc/guides/cryptodevs/uadk.rst| 15 + drivers/crypto/uadk/uadk_crypto_pmd.c

[PATCH v6 4/6] crypto/uadk: support cipher algorithms

2022-10-26 Thread Zhangfei Gao
Add support for cipher algorithms, including AES_ECB, AES_CBC, AES_XTS, and DES_CBC mode. Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/features/uadk.ini | 10 + doc/guides/cryptodevs/uadk.rst| 6 + drivers/crypto/uadk/uadk_crypto_pmd.c | 303

[PATCH v6 3/6] crypto/uadk: support enqueue/dequeue operations

2022-10-26 Thread Zhangfei Gao
This commit adds the enqueue and dequeue operations. Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 53 ++- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/uadk/uadk_crypto_pmd.c b/drivers/crypto/uadk

[PATCH v6 1/6] crypto/uadk: introduce uadk crypto driver

2022-10-26 Thread Zhangfei Gao
directly use virtual address for device dma, which enhances the performance as well as easy usability. This patch adds the basic framework. [1] https://github.com/Linaro/uadk Signed-off-by: Zhangfei Gao --- MAINTAINERS | 6 + doc/guides/cryptodevs/features/uadk.ini

[PATCH v6 2/6] crypto/uadk: support basic operations

2022-10-26 Thread Zhangfei Gao
Support the basic dev control operations: configure, close, start, stop and get info, as well as queue pairs operations. Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 194 +- drivers/crypto/uadk/uadk_crypto_pmd_private.h | 19 ++ 2 files

[PATCH v6 0/6] crypto/uadk: introduce uadk crypto driver

2022-10-26 Thread Zhangfei Gao
/guides/cryptodevs/features/uadk.ini Zhangfei Gao (6): crypto/uadk: introduce uadk crypto driver crypto/uadk: support basic operations crypto/uadk: support enqueue/dequeue operations crypto/uadk: support cipher algorithms crypto/uadk: support auth algorithms test/crypto: sup

Re: [EXT] [PATCH resend v5 5/6] crypto/uadk: support auth algorithms

2022-10-26 Thread Zhangfei Gao
-off-by: Zhangfei Gao --- doc/guides/cryptodevs/features/uadk.ini | 12 + doc/guides/cryptodevs/uadk.rst | 15 + drivers/crypto/uadk/uadk_crypto_pmd.c | 459 3 files changed, 486 insertions(+) @@ -72,6 +84,252 @@ RTE_LOG_REGISTER_DEFAULT

Re: [EXT] [PATCH resend v5 6/6] test/crypto: add cryptodev_uadk_autotest

2022-10-26 Thread Zhangfei Gao
On Tue, 25 Oct 2022 at 22:57, Akhil Goyal wrote: > > > Subject: [EXT] [PATCH resend v5 6/6] test/crypto: add > > cryptodev_uadk_autotest > Rewrite patch title as > test/crypto: support uadk PMD > > > > Add a line > Updated test application to run autotest for uadk crypto PMD. > > Example: > > sud

Re: [EXT] [PATCH resend v5 0/6] crypto/uadk: introduce uadk crypto driver

2022-10-26 Thread Zhangfei Gao
Hi, Akhil Thanks for your guidance. On Tue, 25 Oct 2022 at 23:02, Akhil Goyal wrote: > > > > Introduce a new crypto PMD for hardware accelerators based on UADK [1]. > > > > UADK is a framework for user applications to access hardware accelerators. > > UADK relies on IOMMU SVA (Shared Virtual Add

[PATCH resend v5 6/6] test/crypto: add cryptodev_uadk_autotest

2022-10-24 Thread Zhangfei Gao
Example: sudo dpdk-test --vdev=crypto_uadk --log-level=6 RTE>>cryptodev_uadk_autotest RTE>>quit Signed-off-by: Zhangfei Gao --- app/test/test_cryptodev.c | 7 +++ app/test/test_cryptodev.h | 1 + 2 files changed, 8 insertions(+) diff --git a/app/test/test_cryptodev.

[PATCH resend v5 5/6] crypto/uadk: support auth algorithms

2022-10-24 Thread Zhangfei Gao
`` * ``RTE_CRYPTO_AUTH_SHA384_HMAC`` * ``RTE_CRYPTO_AUTH_SHA512`` * ``RTE_CRYPTO_AUTH_SHA512_HMAC`` Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/features/uadk.ini | 12 + doc/guides/cryptodevs/uadk.rst | 15 + drivers/crypto/uadk/uadk_crypto_pmd.c | 459 3 files

[PATCH resend v5 4/6] crypto/uadk: support cipher algorithms

2022-10-24 Thread Zhangfei Gao
Cipher algorithms: * ``RTE_CRYPTO_CIPHER_AES_ECB`` * ``RTE_CRYPTO_CIPHER_AES_CBC`` * ``RTE_CRYPTO_CIPHER_AES_XTS`` * ``RTE_CRYPTO_CIPHER_DES_CBC`` Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/features/uadk.ini | 10 + doc/guides/cryptodevs/uadk.rst | 6 + drivers/crypto

[PATCH resend v5 3/6] crypto/uadk: support enqueue/dequeue operations

2022-10-24 Thread Zhangfei Gao
This commit adds the enqueue and dequeue operations. Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 53 ++- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/uadk/uadk_crypto_pmd.c b/drivers/crypto/uadk

[PATCH resend v5 2/6] crypto/uadk: support basic operations

2022-10-24 Thread Zhangfei Gao
Support the basic dev control operations: configure, close, start, stop and get info, as well as queue pairs operations. Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 213 -- 1 file changed, 204 insertions(+), 9 deletions(-) diff --git a

[PATCH resend v5 1/6] crypto/uadk: introduce uadk crypto driver

2022-10-24 Thread Zhangfei Gao
directly use virtual address for device dma, which enhances the performance as well as easy usability. This patch adds the basic framework. [1] https://github.com/Linaro/uadk Signed-off-by: Zhangfei Gao --- MAINTAINERS | 6 ++ doc/guides/cryptodevs/features/uadk.ini | 33

[PATCH resend v5 0/6] crypto/uadk: introduce uadk crypto driver

2022-10-24 Thread Zhangfei Gao
/guides/cryptodevs/features/uadk.ini Zhangfei Gao (6): crypto/uadk: introduce uadk crypto driver crypto/uadk: support basic operations crypto/uadk: support enqueue/dequeue operations crypto/uadk: support cipher algorithms crypto/uadk: support auth algorithms test/crypto: add cryptodev_

Re: [EXT] [PATCH v4 0/6] crypto/uadk: introduce uadk crypto driver

2022-10-24 Thread Zhangfei Gao
On Thu, 20 Oct 2022 at 22:46, Akhil Goyal wrote: > > > Introduce a new crypto PMD for hardware accelerators based on UADK [1]. > > > > UADK is a framework for user applications to access hardware accelerators. > > UADK relies on IOMMU SVA (Shared Virtual Address) feature, which share > > the same

[PATCH v5 6/6] test/crypto: add cryptodev_uadk_autotest

2022-10-21 Thread Zhangfei Gao
Example: sudo dpdk-test --vdev=crypto_uadk --log-level=6 RTE>>cryptodev_uadk_autotest RTE>>quit Signed-off-by: Zhangfei Gao --- app/test/test_cryptodev.c | 7 +++ app/test/test_cryptodev.h | 1 + 2 files changed, 8 insertions(+) diff --git a/app/test/test_cryptodev.

[PATCH v5 5/6] crypto/uadk: support auth algorithms

2022-10-21 Thread Zhangfei Gao
`` * ``RTE_CRYPTO_AUTH_SHA384_HMAC`` * ``RTE_CRYPTO_AUTH_SHA512`` * ``RTE_CRYPTO_AUTH_SHA512_HMAC`` Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/features/uadk.ini | 12 + doc/guides/cryptodevs/uadk.rst | 15 + drivers/crypto/uadk/uadk_crypto_pmd.c | 459 3 files

[PATCH v5 4/6] crypto/uadk: support cipher algorithms

2022-10-21 Thread Zhangfei Gao
Cipher algorithms: * ``RTE_CRYPTO_CIPHER_AES_ECB`` * ``RTE_CRYPTO_CIPHER_AES_CBC`` * ``RTE_CRYPTO_CIPHER_AES_XTS`` * ``RTE_CRYPTO_CIPHER_DES_CBC`` Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/features/uadk.ini | 10 + doc/guides/cryptodevs/uadk.rst | 6 + drivers/crypto

[PATCH v5 3/6] crypto/uadk: support enqueue/dequeue operations

2022-10-21 Thread Zhangfei Gao
This commit adds the enqueue and dequeue operations. Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 53 ++- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/uadk/uadk_crypto_pmd.c b/drivers/crypto/uadk

[PATCH v5 2/6] crypto/uadk: support basic operations

2022-10-21 Thread Zhangfei Gao
Support the basic dev control operations: configure, close, start, stop and get info, as well as queue pairs operations. Signed-off-by: Zhangfei Gao --- drivers/crypto/uadk/uadk_crypto_pmd.c | 213 -- 1 file changed, 204 insertions(+), 9 deletions(-) diff --git a

[PATCH v5 1/6] crypto/uadk: introduce uadk crypto driver

2022-10-21 Thread Zhangfei Gao
directly use virtual address for device dma, which enhances the performance as well as easy usability. This patch adds the basic framework. [1] https://github.com/Linaro/uadk Signed-off-by: Zhangfei Gao --- MAINTAINERS | 6 ++ doc/guides/cryptodevs/features/uadk.ini | 33

[PATCH v5 0/6] crypto/uadk: introduce uadk crypto driver

2022-10-21 Thread Zhangfei Gao
better than platform. enum uadk_crypto_version { UADK_CRYPTO_V2, UADK_CRYPTO_V3, }; Update in v1, compared with rfc Suggested from Akhil Goyal Only consider crypto PMD first Split patch into small (individually compiled) patches. Update MAINTAINERS and doc/guides/cryptodevs/features/uadk.ini

Re: [EXT] [PATCH v4 0/6] crypto/uadk: introduce uadk crypto driver

2022-10-21 Thread Zhangfei Gao
On Fri, 21 Oct 2022 at 01:12, Akhil Goyal wrote: > > > On Thu, 20 Oct 2022 at 22:46, Akhil Goyal wrote: > > > > > > > Introduce a new crypto PMD for hardware accelerators based on UADK [1]. > > > > > > > > UADK is a framework for user applications to access hardware > > > > accelerators. > > > >

Re: [EXT] [PATCH v4 0/6] crypto/uadk: introduce uadk crypto driver

2022-10-20 Thread Zhangfei Gao
o write empty functions. > >Add basic documentation also which defines what the driver is. > >You can explain the build dependency here. > > 2. define queue structs and setup/remove APIs > > 3. Add data path > > 4. implement cipher op. Add capabilities and documentation of what is >

Re: [EXT] Re: crypto/uadk: introduce uadk crypto driver

2022-10-19 Thread Zhangfei Gao
Hi, Akhil On Wed, 19 Oct 2022 at 23:27, Zhangfei Gao wrote: > > > > Hi everyone, > > > > > > > > > > > > > > > > We have a new crypto PMD submitted on ML > > > (http://patches.dpdk

Re: [EXT] Re: crypto/uadk: introduce uadk crypto driver

2022-10-19 Thread Zhangfei Gao
On Wed, 19 Oct 2022 at 22:25, Akhil Goyal wrote: > > Hi Zhangfei, > > Hi, Akhil > > > > On Mon, 17 Oct 2022 at 15:02, Akhil Goyal wrote: > > > > > > Hi everyone, > > > > > > > > > > > > We have a new crypto PMD submitted on ML > > (http://patches.dpdk.org/project/dpdk/cover/20221008083747.6559-1-

[PATCH v2 resend] bus/vdev: vdev_cleanup checks dev->device.driver

2022-10-19 Thread Zhangfei Gao
sudo dpdk-test --vdev=crypto_uadk --log-level=6 vdev_probe(): failed to initialize crypto_uadk device EAL: Bus (vdev) probe failed. RTE>>quit Segmentation fault Fixes: 1cab1a40ea9b ("bus: cleanup devices on shutdown") Signed-off-by: Zhangfei Gao --- v2: Suggested by David Ma

[PATCH v2] bus/vdev: vdev_cleanup checks dev->device.driver

2022-10-19 Thread Zhangfei Gao
sudo dpdk-test --vdev=crypto_uadk --log-level=6 vdev_probe(): failed to initialize crypto_uadk device EAL: Bus (vdev) probe failed. RTE>>quit Segmentation fault Fixes: 1cab1a40ea9b ("bus: cleanup devices on shutdown") Signed-off-by: Zhangfei Gao --- v2: Suggested by David Ma

Re: [PATCH] bus/vdev: vdev_cleanup checks dev->device.driver

2022-10-19 Thread Zhangfei Gao
On Wed, 19 Oct 2022 at 19:39, David Marchand wrote: > > On Wed, Oct 19, 2022 at 12:55 PM Zhangfei Gao wrote: > > > > The vdev_probe calls driver->probe, which may fail > > and dev->device.driver will still be NULL. > > > > In vdev_cleanup, drv = cont

Re: [PATCH] bus/vdev: vdev_cleanup checks dev->device.driver

2022-10-19 Thread Zhangfei Gao
Hi, David On Wed, 19 Oct 2022 at 19:39, David Marchand wrote: > > On Wed, Oct 19, 2022 at 12:55 PM Zhangfei Gao wrote: > > > > The vdev_probe calls driver->probe, which may fail > > and dev->device.driver will still be NULL. > > > > In vdev_clea

Re: crypto/uadk: introduce uadk crypto driver

2022-10-19 Thread Zhangfei Gao
Hi, Akhil On Mon, 17 Oct 2022 at 15:02, Akhil Goyal wrote: > > Hi everyone, > > > > We have a new crypto PMD submitted on ML > (http://patches.dpdk.org/project/dpdk/cover/20221008083747.6559-1-zhangfei@linaro.org/) > > > > This PMD is dependent on an external library which needs to be cross

[PATCH v4 6/6] test/crypto: add cryptodev_uadk_autotest

2022-10-19 Thread Zhangfei Gao
Example: sudo dpdk-test --vdev=crypto_uadk --log-level=6 RTE>>cryptodev_uadk_autotest RTE>>quit Signed-off-by: Zhangfei Gao --- app/test/test_cryptodev.c | 7 +++ app/test/test_cryptodev.h | 1 + 2 files changed, 8 insertions(+) diff --git a/app/test/test_cryptodev.

[PATCH v4 4/6] crypto/uadk: support cipher algorithms

2022-10-19 Thread Zhangfei Gao
Cipher algorithms: * ``RTE_CRYPTO_CIPHER_AES_ECB`` * ``RTE_CRYPTO_CIPHER_AES_CBC`` * ``RTE_CRYPTO_CIPHER_AES_XTS`` * ``RTE_CRYPTO_CIPHER_DES_CBC`` Signed-off-by: Zhangfei Gao --- doc/guides/cryptodevs/features/uadk.ini | 10 + doc/guides/cryptodevs/uadk.rst | 6 + drivers/crypto

  1   2   >