[dpdk-dev] [PATCH] crypto/virtio: add OOP_LB_IN_LB_OUT feature flag

2020-05-15 Thread Jay Zhou
Since it will check the feature mask before running out-of-place test cases and the virtio-crypto device supports OOP_LB_IN_LB_OUT mode. Signed-off-by: Jay Zhou --- drivers/crypto/virtio/virtio_cryptodev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto

[dpdk-dev] [PATCH v11 09/10] test/crypto: add function tests for virtio crypto PMD

2018-04-17 Thread Jay Zhou
Only RTE_CRYPTO_CIPHER_AES_CBC cipher algorithm are tested as unit test, it is supported both by the cryptodev-backend-builtin and cryptodev-vhost-user of qemu side. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- test/test/test_cryptodev.c | 48

[dpdk-dev] [PATCH v11 10/10] doc: add virtio crypto PMD guide

2018-04-17 Thread Jay Zhou
This patch adds the guide for virtio crypto PMD. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- MAINTAINERS | 2 + doc/guides/cryptodevs/features/virtio.ini | 26 +++ doc/guides/cryptodevs/index.rst | 1 + doc/guides

[dpdk-dev] [PATCH v11 01/10] crypto/virtio: add virtio crypto PMD

2018-04-17 Thread Jay Zhou
The virtio crypto device is a virtual cryptography device as well as a kind of virtual hardware accelerator for virtual machines. The linux kernel virtio-crypto driver has been merged, and this patch introduces virtio crypto PMD to achieve better performance. Signed-off-by: Jay Zhou Reviewed-by

[dpdk-dev] [PATCH v11 07/10] crypto/virtio: support AES-CBC

2018-04-17 Thread Jay Zhou
The AES-CBC cipher only algorithm has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 30 ++ drivers/crypto/virtio/virtio_cryptodev.c | 11 2 files changed

[dpdk-dev] [PATCH v11 06/10] crypto/virtio: support stats related ops

2018-04-17 Thread Jay Zhou
This patch implements the statistics of the packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 66 +++- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/virtio

[dpdk-dev] [PATCH v11 04/10] crypto/virtio: support session related ops

2018-04-17 Thread Jay Zhou
This patch implements session related operations, which includes creating and destroying the session. For now, it only supports the session-oriented API implementation. The control queue used to create or destroy sessions for symmetric algorithms. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang

[dpdk-dev] [PATCH v11 00/10] crypto: add virtio poll mode driver

2018-04-17 Thread Jay Zhou
crypto conforms to virtio-1.0 - refine the function and variable names - fix errors and warnings reported by checkpatch Jay Zhou (10): crypto/virtio: add virtio crypto PMD crypto/virtio: support virtio device init crypto/virtio: support basic PMD ops crypto/virtio: support session related

[dpdk-dev] [PATCH v11 08/10] crypto/virtio: support HMAC-SHA1

2018-04-17 Thread Jay Zhou
The AES-CBC with HMAC-SHA1 has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 21 + drivers/crypto/virtio/virtio_cryptodev.c | 4 +++- 2 files changed, 24 insertions

[dpdk-dev] [PATCH v11 03/10] crypto/virtio: support basic PMD ops

2018-04-17 Thread Jay Zhou
control queue. For example, if a virtio crypto device has N queues, then [0, N-2] is the data queue index, N-1 is the control queue index. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 437 ++- drivers

[dpdk-dev] [PATCH v11 05/10] crypto/virtio: support crypto enqueue/dequeue burst API

2018-04-17 Thread Jay Zhou
This patch implements the functions of virtio_crypto_pkt_tx_burst() and virtio_crypto_pkt_rx_burst(). The encryption and decryption requests are placed in the data queue and are ultimately handled by the backend crypto accelerators. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan

[dpdk-dev] [PATCH v11 02/10] crypto/virtio: support virtio device init

2018-04-17 Thread Jay Zhou
burst transfer packets and virtio_crypto_pkt_rx_burst() is used to burst receive packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/Makefile | 7 + drivers/crypto/virtio/meson.build| 4 +- drivers/crypto/virtio

[dpdk-dev] [PATCH v10 09/10] test/crypto: add function tests for virtio crypto PMD

2018-04-15 Thread Jay Zhou
Only RTE_CRYPTO_CIPHER_AES_CBC cipher algorithm are tested as unit test, it is supported both by the cryptodev-backend-builtin and cryptodev-vhost-user of qemu side. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- test/test/test_cryptodev.c | 48

[dpdk-dev] [PATCH v10 10/10] doc: add virtio crypto PMD guide

2018-04-15 Thread Jay Zhou
This patch adds the guide for virtio crypto PMD. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- MAINTAINERS | 2 + doc/guides/cryptodevs/features/virtio.ini | 26 +++ doc/guides/cryptodevs/index.rst | 1 + doc/guides

[dpdk-dev] [PATCH v10 05/10] crypto/virtio: support crypto enqueue/dequeue burst API

2018-04-15 Thread Jay Zhou
This patch implements the functions of virtio_crypto_pkt_tx_burst() and virtio_crypto_pkt_rx_burst(). The encryption and decryption requests are placed in the data queue and are ultimately handled by the backend crypto accelerators. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan

[dpdk-dev] [PATCH v10 08/10] crypto/virtio: support HMAC-SHA1

2018-04-15 Thread Jay Zhou
The AES-CBC with HMAC-SHA1 has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 21 + drivers/crypto/virtio/virtio_cryptodev.c | 4 +++- 2 files changed, 24 insertions

[dpdk-dev] [PATCH v10 00/10] crypto: add virtio poll mode driver

2018-04-15 Thread Jay Zhou
f the file [Fan] - update doc/guides/cryptodevs for describing virtio crypto PMD [Fan] - update copyright - delete virtio legacy mode code since virtio-crypto conforms to virtio-1.0 - refine the function and variable names - fix errors and warnings reported by checkpatch Jay Zhou (10): crypto/vi

[dpdk-dev] [PATCH v10 02/10] crypto/virtio: support virtio device init

2018-04-15 Thread Jay Zhou
burst transfer packets and virtio_crypto_pkt_rx_burst() is used to burst receive packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/Makefile | 3 + drivers/crypto/virtio/meson.build| 3 +- drivers/crypto/virtio

[dpdk-dev] [PATCH v10 07/10] crypto/virtio: support AES-CBC

2018-04-15 Thread Jay Zhou
The AES-CBC cipher only algorithm has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 30 ++ drivers/crypto/virtio/virtio_cryptodev.c | 11 2 files changed

[dpdk-dev] [PATCH v10 03/10] crypto/virtio: support basic PMD ops

2018-04-15 Thread Jay Zhou
control queue. For example, if a virtio crypto device has N queues, then [0, N-2] is the data queue index, N-1 is the control queue index. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 437 ++- drivers

[dpdk-dev] [PATCH v10 01/10] crypto/virtio: add virtio crypto PMD

2018-04-15 Thread Jay Zhou
The virtio crypto device is a virtual cryptography device as well as a kind of virtual hardware accelerator for virtual machines. The linux kernel virtio-crypto driver has been merged, and this patch introduces virtio crypto PMD to achieve better performance. Signed-off-by: Jay Zhou Reviewed-by

[dpdk-dev] [PATCH v10 06/10] crypto/virtio: support stats related ops

2018-04-15 Thread Jay Zhou
This patch implements the statistics of the packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 66 +++- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/virtio

[dpdk-dev] [PATCH v10 04/10] crypto/virtio: support session related ops

2018-04-15 Thread Jay Zhou
This patch implements session related operations, which includes creating and destroying the session. For now, it only supports the session-oriented API implementation. The control queue used to create or destroy sessions for symmetric algorithms. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang

[dpdk-dev] [PATCH v9 10/11] test/crypto: add function tests for virtio crypto PMD

2018-04-15 Thread Jay Zhou
Only RTE_CRYPTO_CIPHER_AES_CBC cipher algorithm are tested as unit test, it is supported both by the cryptodev-backend-builtin and cryptodev-vhost-user of qemu side. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- test/test/test_cryptodev.c | 48

[dpdk-dev] [PATCH v9 02/11] crypto/virtio: support virtio device init

2018-04-15 Thread Jay Zhou
burst transfer packets and virtio_crypto_pkt_rx_burst() is used to burst receive packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/Makefile | 3 + drivers/crypto/virtio/virtio_cryptodev.c | 245 +++- drivers/crypto

[dpdk-dev] [PATCH v9 06/11] crypto/virtio: support stats related ops

2018-04-15 Thread Jay Zhou
This patch implements the statistics of the packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 66 +++- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/virtio

[dpdk-dev] [PATCH v9 01/11] crypto/virtio: add virtio crypto PMD

2018-04-15 Thread Jay Zhou
The virtio crypto device is a virtual cryptography device as well as a kind of virtual hardware accelerator for virtual machines. The linux kernel virtio-crypto driver has been merged, and this patch introduces virtio crypto PMD to achieve better performance. Signed-off-by: Jay Zhou Reviewed-by

[dpdk-dev] [PATCH v9 05/11] crypto/virtio: support crypto enqueue/dequeue burst API

2018-04-15 Thread Jay Zhou
This patch implements the functions of virtio_crypto_pkt_tx_burst() and virtio_crypto_pkt_rx_burst(). The encryption and decryption requests are placed in the data queue and are ultimately handled by the backend crypto accelerators. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan

[dpdk-dev] [PATCH v9 11/11] doc: add virtio crypto PMD guide

2018-04-15 Thread Jay Zhou
This patch adds the guide for virtio crypto PMD. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- MAINTAINERS | 2 + doc/guides/cryptodevs/features/virtio.ini | 26 +++ doc/guides/cryptodevs/index.rst | 1 + doc/guides

[dpdk-dev] [PATCH v9 08/11] crypto/virtio: support HMAC-SHA1

2018-04-15 Thread Jay Zhou
The AES-CBC with HMAC-SHA1 has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 21 + drivers/crypto/virtio/virtio_cryptodev.c | 4 +++- 2 files changed, 24 insertions

[dpdk-dev] [PATCH v9 09/11] crypto/virtio: build with meson

2018-04-15 Thread Jay Zhou
Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/meson.build| 2 +- drivers/crypto/virtio/meson.build | 12 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/virtio/meson.build diff --git a/drivers

[dpdk-dev] [PATCH v9 07/11] crypto/virtio: support AES-CBC

2018-04-15 Thread Jay Zhou
The AES-CBC cipher only algorithm has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 30 ++ drivers/crypto/virtio/virtio_cryptodev.c | 11 2 files changed

[dpdk-dev] [PATCH v9 03/11] crypto/virtio: support basic PMD ops

2018-04-15 Thread Jay Zhou
control queue. For example, if a virtio crypto device has N queues, then [0, N-2] is the data queue index, N-1 is the control queue index. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 437 ++- drivers

[dpdk-dev] [PATCH v9 00/11] crypto: add virtio poll mode driver

2018-04-15 Thread Jay Zhou
- update copyright - delete virtio legacy mode code since virtio-crypto conforms to virtio-1.0 - refine the function and variable names - fix errors and warnings reported by checkpatch Jay Zhou (11): crypto/virtio: add virtio crypto PMD crypto/virtio: support virtio device init crypto/vi

[dpdk-dev] [PATCH v9 04/11] crypto/virtio: support session related ops

2018-04-15 Thread Jay Zhou
This patch implements session related operations, which includes creating and destroying the session. For now, it only supports the session-oriented API implementation. The control queue used to create or destroy sessions for symmetric algorithms. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang

[dpdk-dev] [PATCH v8 10/11] test/crypto: add function tests for virtio crypto PMD

2018-04-14 Thread Jay Zhou
Only RTE_CRYPTO_CIPHER_AES_CBC cipher algorithm are tested as unit test, it is supported both by the cryptodev-backend-builtin and cryptodev-vhost-user of qemu side. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- test/test/test_cryptodev.c | 48

[dpdk-dev] [PATCH v8 08/11] crypto/virtio: support HMAC-SHA1

2018-04-14 Thread Jay Zhou
The AES-CBC with HMAC-SHA1 has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 21 + drivers/crypto/virtio/virtio_cryptodev.c | 4 +++- 2 files changed, 24 insertions

[dpdk-dev] [PATCH v8 06/11] crypto/virtio: support stats related ops

2018-04-14 Thread Jay Zhou
This patch implements the statistics of the packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 66 +++- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/virtio

[dpdk-dev] [PATCH v8 11/11] doc: add virtio crypto PMD guide

2018-04-14 Thread Jay Zhou
This patch adds the guide for virtio crypto PMD. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- MAINTAINERS | 2 + doc/guides/cryptodevs/features/virtio.ini | 26 +++ doc/guides/cryptodevs/index.rst | 1 + doc/guides

[dpdk-dev] [PATCH v8 00/11] crypto: add virtio poll mode driver

2018-04-14 Thread Jay Zhou
d variable names - fix errors and warnings reported by checkpatch Jay Zhou (11): crypto/virtio: add virtio crypto PMD crypto/virtio: support virtio device init crypto/virtio: support basic PMD ops crypto/virtio: support session related ops crypto/virtio: support crypto enqueue/dequeue

[dpdk-dev] [PATCH v8 09/11] crypto/virtio: build with meson

2018-04-14 Thread Jay Zhou
Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/meson.build| 2 +- drivers/crypto/virtio/meson.build | 12 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/virtio/meson.build diff --git a/drivers

[dpdk-dev] [PATCH v8 05/11] crypto/virtio: support crypto enqueue/dequeue burst API

2018-04-14 Thread Jay Zhou
This patch implements the functions of virtio_crypto_pkt_tx_burst() and virtio_crypto_pkt_rx_burst(). The encryption and decryption requests are placed in the data queue and are ultimately handled by the backend crypto accelerators. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan

[dpdk-dev] [PATCH v8 07/11] crypto/virtio: support AES-CBC

2018-04-14 Thread Jay Zhou
The AES-CBC cipher only algorithm has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 30 ++ drivers/crypto/virtio/virtio_cryptodev.c | 11 2 files changed

[dpdk-dev] [PATCH v8 04/11] crypto/virtio: support session related ops

2018-04-14 Thread Jay Zhou
This patch implements session related operations, which includes creating and destroying the session. For now, it only supports the session-oriented API implementation. The control queue used to create or destroy sessions for symmetric algorithms. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang

[dpdk-dev] [PATCH v8 01/11] crypto/virtio: add virtio crypto PMD

2018-04-14 Thread Jay Zhou
The virtio crypto device is a virtual cryptography device as well as a kind of virtual hardware accelerator for virtual machines. The linux kernel virtio-crypto driver has been merged, and this patch introduces virtio crypto PMD to achieve better performance. Signed-off-by: Jay Zhou Reviewed-by

[dpdk-dev] [PATCH v8 02/11] crypto/virtio: support virtio device init

2018-04-14 Thread Jay Zhou
burst transfer packets and virtio_crypto_pkt_rx_burst() is used to burst receive packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/Makefile | 3 + drivers/crypto/virtio/virtio_cryptodev.c | 245 +++- drivers/crypto

[dpdk-dev] [PATCH v8 03/11] crypto/virtio: support basic PMD ops

2018-04-14 Thread Jay Zhou
control queue. For example, if a virtio crypto device has N queues, then [0, N-2] is the data queue index, N-1 is the control queue index. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 437 ++- drivers

[dpdk-dev] [PATCH] compat: add virtio crypto header file

2018-04-14 Thread Jay Zhou
Moving the virtio crypto header file from vhost lib to compat lib, then this header file can be shared between vhost crypto backend and virtio crypto PMD. Signed-off-by: Jay Zhou --- lib/librte_compat/Makefile | 3 ++- lib/librte_compat/meson.build

[dpdk-dev] [PATCH] vhost: fix meson build for vDPA

2018-04-14 Thread Jay Zhou
CC: Zhihong Wang Fixes: 8b991d412e (vhost: support selective datapath) Signed-off-by: Jay Zhou --- lib/librte_vhost/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_vhost/meson.build b/lib/librte_vhost/meson.build index 66cced1cb..b021894a0 100644

[dpdk-dev] [PATCH] lib/librte_vhost: add virtio_crypto.h header file

2018-04-05 Thread Jay Zhou
ff-by: Jay Zhou Signed-off-by: Gonglei --- lib/librte_vhost/virtio_crypto.h | 422 +++ 1 file changed, 422 insertions(+) create mode 100644 lib/librte_vhost/virtio_crypto.h diff --git a/lib/librte_vhost/virtio_crypto.h b/lib/librte_vhost/virtio_crypto.h new file

[dpdk-dev] [PATCH v7 10/10] doc: add virtio crypto PMD guide

2018-04-04 Thread Jay Zhou
This patch adds the guide for virtio crypto PMD. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- MAINTAINERS | 2 + doc/guides/cryptodevs/features/virtio.ini | 26 +++ doc/guides/cryptodevs/index.rst | 1 + doc/guides

[dpdk-dev] [PATCH v7 02/10] crypto/virtio: support virtio device init

2018-04-04 Thread Jay Zhou
burst transfer packets and virtio_crypto_pkt_rx_burst() is used to burst receive packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/Makefile | 3 + drivers/crypto/virtio/virtio_cryptodev.c | 247 - drivers/crypto

[dpdk-dev] [PATCH v7 05/10] crypto/virtio: support crypto enqueue/dequeue burst API

2018-04-04 Thread Jay Zhou
This patch implements the functions of virtio_crypto_pkt_tx_burst() and virtio_crypto_pkt_rx_burst(). The encryption and decryption requests are placed in the data queue and are ultimately handled by the backend crypto accelerators. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan

[dpdk-dev] [PATCH v7 06/10] crypto/virtio: support stats related ops

2018-04-04 Thread Jay Zhou
This patch implements the statistics of the packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 66 +++- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/virtio

[dpdk-dev] [PATCH v7 04/10] crypto/virtio: support session related ops

2018-04-04 Thread Jay Zhou
This patch implements session related operations, which includes creating and destroying the session. For now, it only supports the session-oriented API implementation. The control queue used to create or destroy sessions for symmetric algorithms. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang

[dpdk-dev] [PATCH v7 01/10] crypto/virtio: add virtio crypto PMD

2018-04-04 Thread Jay Zhou
The virtio crypto device is a virtual cryptography device as well as a kind of virtual hardware accelerator for virtual machines. The linux kernel virtio-crypto driver has been merged, and this patch introduces virtio crypto PMD to achieve better performance. Signed-off-by: Jay Zhou Reviewed-by

[dpdk-dev] [PATCH v7 09/10] test/crypto: add function tests for virtio crypto PMD

2018-04-04 Thread Jay Zhou
Only RTE_CRYPTO_CIPHER_AES_CBC cipher algorithm are tested as unit test, it is supported both by the cryptodev-backend-builtin and cryptodev-vhost-user of qemu side. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- test/test/test_cryptodev.c | 48

[dpdk-dev] [PATCH v7 08/10] crypto/virtio: support HMAC-SHA1

2018-04-04 Thread Jay Zhou
The AES-CBC with HMAC-SHA1 has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 21 + drivers/crypto/virtio/virtio_cryptodev.c | 4 +++- 2 files changed, 24 insertions

[dpdk-dev] [PATCH v7 07/10] crypto/virtio: support AES-CBC

2018-04-04 Thread Jay Zhou
The AES-CBC cipher only algorithm has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 30 ++ drivers/crypto/virtio/virtio_cryptodev.c | 11 2 files changed

[dpdk-dev] [PATCH v7 00/10] crypto: add virtio poll mode driver

2018-04-04 Thread Jay Zhou
nction and variable names - fix errors and warnings reported by checkpatch Jay Zhou (10): crypto/virtio: add virtio crypto PMD crypto/virtio: support virtio device init crypto/virtio: support basic PMD ops crypto/virtio: support session related ops crypto/virtio: support crypto enqu

[dpdk-dev] [PATCH v7 03/10] crypto/virtio: support basic PMD ops

2018-04-04 Thread Jay Zhou
control queue. For example, if a virtio crypto device has N queues, then [0, N-2] is the data queue index, N-1 is the control queue index. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 434 ++- drivers

[dpdk-dev] [PATCH v6 05/10] crypto/virtio: support crypto enqueue/dequeue burst API

2018-04-03 Thread Jay Zhou
Signed-off-by: Jay Zhou --- drivers/crypto/virtio/virtio_cryptodev.h | 2 + drivers/crypto/virtio/virtio_rxtx.c | 441 ++- 2 files changed, 433 insertions(+), 10 deletions(-) diff --git a/drivers/crypto/virtio/virtio_cryptodev.h b/drivers/crypto/virtio

[dpdk-dev] [PATCH v6 08/10] crypto/virtio: support HMAC-SHA1

2018-04-03 Thread Jay Zhou
Signed-off-by: Jay Zhou --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 21 + drivers/crypto/virtio/virtio_cryptodev.c | 4 +++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/virtio/virtio_crypto_capabilities.h b/drivers

[dpdk-dev] [PATCH v6 10/10] doc: add virtio crypto PMD guide

2018-04-03 Thread Jay Zhou
Signed-off-by: Jay Zhou --- MAINTAINERS | 2 + doc/guides/cryptodevs/features/virtio.ini | 26 +++ doc/guides/cryptodevs/index.rst | 1 + doc/guides/cryptodevs/virtio.rst | 117 ++ doc/guides/rel_notes

[dpdk-dev] [PATCH v6 09/10] test/crypto: add function tests for virtio crypto PMD

2018-04-03 Thread Jay Zhou
Only RTE_CRYPTO_CIPHER_AES_CBC cipher algorithm are tested as unit test, it is supported both by the cryptodev-backend-builtin and cryptodev-vhost-user of qemu side. Signed-off-by: Jay Zhou --- test/test/test_cryptodev.c | 48 + test/test

[dpdk-dev] [PATCH v6 01/10] crypto/virtio: add virtio crypto PMD

2018-04-03 Thread Jay Zhou
Signed-off-by: Jay Zhou --- MAINTAINERS| 4 +++ config/common_base | 14 + doc/guides/rel_notes/release_18_05.rst | 3 ++ drivers/crypto/Makefile| 1 + drivers/crypto/virtio

[dpdk-dev] [PATCH v6 06/10] crypto/virtio: support stats related ops

2018-04-03 Thread Jay Zhou
Signed-off-by: Jay Zhou --- drivers/crypto/virtio/virtio_cryptodev.c | 66 +++- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/virtio/virtio_cryptodev.c b/drivers/crypto/virtio/virtio_cryptodev.c index 11f725a..0ab0d38 100644 --- a

[dpdk-dev] [PATCH v6 02/10] crypto/virtio: support virtio device init

2018-04-03 Thread Jay Zhou
Signed-off-by: Jay Zhou --- drivers/crypto/virtio/Makefile | 3 + drivers/crypto/virtio/virtio_cryptodev.c | 247 - drivers/crypto/virtio/virtio_cryptodev.h | 13 + drivers/crypto/virtio/virtio_logs.h | 91 ++ drivers/crypto/virtio/virtio_pci.c | 460

[dpdk-dev] [PATCH v6 03/10] crypto/virtio: support basic PMD ops

2018-04-03 Thread Jay Zhou
Signed-off-by: Jay Zhou --- drivers/crypto/virtio/virtio_cryptodev.c | 434 ++- drivers/crypto/virtio/virtio_cryptodev.h | 32 ++- drivers/crypto/virtio/virtio_rxtx.c | 68 + 3 files changed, 525 insertions(+), 9 deletions(-) diff --git a/drivers/crypto

[dpdk-dev] [PATCH v6 07/10] crypto/virtio: support AES-CBC

2018-04-03 Thread Jay Zhou
Signed-off-by: Jay Zhou --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 30 ++ drivers/crypto/virtio/virtio_cryptodev.c | 11 2 files changed, 41 insertions(+) create mode 100644 drivers/crypto/virtio/virtio_crypto_capabilities.h diff --git a

[dpdk-dev] [PATCH v6 04/10] crypto/virtio: support session related ops

2018-04-03 Thread Jay Zhou
Signed-off-by: Jay Zhou --- drivers/crypto/virtio/virtio_crypto_algs.h | 27 ++ drivers/crypto/virtio/virtio_cryptodev.c | 728 - drivers/crypto/virtio/virtio_cryptodev.h | 7 + 3 files changed, 759 insertions(+), 3 deletions(-) create mode 100644 drivers

[dpdk-dev] [PATCH v6 00/10] crypto: add virtio poll mode driver

2018-04-03 Thread Jay Zhou
rtio_crypto.h instead of creating a copy of the file [Fan] - update doc/guides/cryptodevs for describing virtio crypto PMD [Fan] - update copyright - delete virtio legacy mode code since virtio-crypto conforms to virtio-1.0 - refine the function and variable names - fix errors and warnings re

[dpdk-dev] [PATCH v5 7/7] MAINTAINERS: add myself as virtio crypto PMD maintainer

2018-03-31 Thread Jay Zhou
Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b262e55..5424e74 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -724,6 +724,12 @@ F: drivers/crypto/snow3g/ F: doc/guides

[dpdk-dev] [PATCH v5 2/7] crypto/virtio: add crypto related session structure

2018-03-31 Thread Jay Zhou
This structure will be used in the following patches, especially at creating and destroying crypto sessions. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_algs.h | 27 +++ 1 file changed, 27 insertions

[dpdk-dev] [PATCH v5 3/7] crypto/virtio: core code of virtio crypto PMD

2018-03-31 Thread Jay Zhou
-chaining. The function virtio_crypto_sym_configure_session() is used to create a session, then virtio_crypto_pkt_tx_burst() can be used to burst transfer packets and virtio_crypto_pkt_rx_burst() can be used to burst receive packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang

[dpdk-dev] [PATCH v5 5/7] doc: add virtio crypto PMD guide

2018-03-31 Thread Jay Zhou
Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- doc/guides/cryptodevs/features/virtio.ini | 26 +++ doc/guides/cryptodevs/index.rst | 1 + doc/guides/cryptodevs/virtio.rst | 117 ++ 3 files changed, 144 insertions

[dpdk-dev] [PATCH v5 6/7] test/crypto: add function tests for virtio crypto PMD

2018-03-31 Thread Jay Zhou
Only RTE_CRYPTO_CIPHER_AES_CBC cipher algorithm are tested as unit test, it is supported both by the cryptodev-backend-builtin and cryptodev-vhost-user of qemu side. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- test/test/test_cryptodev.c | 48

[dpdk-dev] [PATCH v5 4/7] crypto/virtio: add makefile

2018-03-31 Thread Jay Zhou
The virtio crypto PMD driver can be compiled now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/Makefile| 1 + drivers/crypto/virtio/Makefile | 31 ++ .../virtio

[dpdk-dev] [PATCH v5 0/7] crypto: add virtio poll mode driver

2018-03-31 Thread Jay Zhou
[Fan] - update doc/guides/cryptodevs for describing virtio crypto PMD [Fan] - update copyright - delete virtio legacy mode code since virtio-crypto conforms to virtio-1.0 - refine the function and variable names - fix errors and warnings reported by checkpatch Jay Zhou (7): crypto/virti

[dpdk-dev] [PATCH v5 1/7] crypto/virtio: add virtio related fundamental functions

2018-03-31 Thread Jay Zhou
Since there does not have the common virtio library, we have to put these files here. They are basically the same with virtio net related files with some minor changes. Meanwhile, adding virtio crypto PMD related release note for 18.05. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by

[dpdk-dev] [PATCH v4 7/7] MAINTAINERS: add myself as virtio crypto PMD maintainer

2018-03-31 Thread Jay Zhou
Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 75d3e92..24c5af8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -718,6 +718,12 @@ F: drivers/crypto/snow3g/ F: doc/guides

[dpdk-dev] [PATCH v4 4/7] crypto/virtio: add makefile

2018-03-31 Thread Jay Zhou
The virtio crypto PMD driver can be compiled now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/Makefile| 1 + drivers/crypto/virtio/Makefile | 31 ++ .../virtio

[dpdk-dev] [PATCH v4 6/7] test/crypto: add function tests for virtio crypto PMD

2018-03-31 Thread Jay Zhou
Only RTE_CRYPTO_CIPHER_AES_CBC cipher algorithm are tested as unit test, it is supported both by the cryptodev-backend-builtin and cryptodev-vhost-user of qemu side. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- test/test/test_cryptodev.c | 49

[dpdk-dev] [PATCH v4 0/7] crypto: add virtio poll mode driver

2018-03-31 Thread Jay Zhou
- delete virtio legacy mode code since virtio-crypto conforms to virtio-1.0 - refine the function and variable names - fix errors and warnings reported by checkpatch Jay Zhou (7): crypto/virtio: add virtio related fundamental functions crypto/virtio: add crypto related session structure cr

[dpdk-dev] [PATCH v4 1/7] crypto/virtio: add virtio related fundamental functions

2018-03-31 Thread Jay Zhou
Since there does not have the common virtio library, we have to put these files here. They are basically the same with virtio net related files with some minor changes. Meanwhile, adding virtio crypto PMD related release note for 18.05. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by

[dpdk-dev] [PATCH v4 2/7] crypto/virtio: add crypto related session structure

2018-03-31 Thread Jay Zhou
This structure will be used in the following patches, especially at creating and destroying crypto sessions. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_algs.h | 27 +++ 1 file changed, 27 insertions

[dpdk-dev] [PATCH v4 5/7] doc: add virtio crypto PMD guide

2018-03-31 Thread Jay Zhou
Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- doc/guides/cryptodevs/features/virtio.ini | 26 +++ doc/guides/cryptodevs/index.rst | 1 + doc/guides/cryptodevs/virtio.rst | 117 ++ 3 files changed, 144 insertions

[dpdk-dev] [PATCH v4 3/7] crypto/virtio: core code of virtio crypto PMD

2018-03-31 Thread Jay Zhou
-chaining. The function virtio_crypto_sym_configure_session() is used to create a session, then virtio_crypto_pkt_tx_burst() can be used to burst transfer packets and virtio_crypto_pkt_rx_burst() can be used to burst receive packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang

[dpdk-dev] [PATCH v3 6/7] cryptodev: add function tests for virtio crypto PMD

2018-03-25 Thread Jay Zhou
Only RTE_CRYPTO_CIPHER_AES_CBC cipher algorithms are tested as unit test, it is supported both by the cryptodev-backend-builtin and cryptodev-vhost-user of qemu side. Signed-off-by: Jay Zhou --- test/test/test_cryptodev.c | 49 + test/test

[dpdk-dev] [PATCH v3 4/7] crypto/virtio: add makefile

2018-03-25 Thread Jay Zhou
The virtio crypto PMD driver can be compiled now. Signed-off-by: Jay Zhou --- drivers/crypto/Makefile| 1 + drivers/crypto/virtio/Makefile | 31 ++ .../virtio/rte_pmd_virtio_crypto_version.map | 3 +++ mk/rte.app.mk

[dpdk-dev] [PATCH v3 5/7] cryptodev: add document for virtio crypto PMD

2018-03-25 Thread Jay Zhou
Signed-off-by: Jay Zhou --- doc/guides/cryptodevs/features/virtio.ini | 22 ++ doc/guides/cryptodevs/virtio.rst | 117 ++ 2 files changed, 139 insertions(+) create mode 100644 doc/guides/cryptodevs/features/virtio.ini create mode 100644 doc/guides

[dpdk-dev] [PATCH v3 7/7] MAINTAINERS: add myself as virtio crypto PMD maintainer

2018-03-25 Thread Jay Zhou
Signed-off-by: Jay Zhou --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a646ca3..be1b394 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -719,6 +719,12 @@ F: drivers/crypto/snow3g/ F: doc/guides/cryptodevs/snow3g.rst F: doc/guides

[dpdk-dev] [PATCH v3 2/7] crpyto/virtio: add crypto related session structure

2018-03-25 Thread Jay Zhou
This structure will be used in the following patches, especially at creating and destroying crypto sessions. Signed-off-by: Jay Zhou --- drivers/crypto/virtio/virtio_crypto_algs.h | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 drivers/crypto/virtio

[dpdk-dev] [PATCH v3 0/7] crypto: add virtio poll mode driver

2018-03-25 Thread Jay Zhou
- delete virtio legacy mode code since virtio-crypto conforms to virtio-1.0 - refine the function and variable names - fix errors and warnings reported by checkpatch Jay Zhou (7): crypto/virtio: add virtio related fundamental functions crpyto/virtio: add crypto related session structure cr

[dpdk-dev] [PATCH v3 3/7] cryptodev/virtio: core code of crypto devices

2018-03-25 Thread Jay Zhou
The idea comes from QAT and virtio-net devices. Signed-off-by: Jay Zhou --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 51 + drivers/crypto/virtio/virtio_cryptodev.c | 1553 drivers/crypto/virtio/virtio_cryptodev.h | 66 + drivers/crypto

[dpdk-dev] [PATCH v3 1/7] crypto/virtio: add virtio related fundamental functions

2018-03-25 Thread Jay Zhou
Since there does not have the common virtio library, we have to put these files here. They are basically the same with virtio net related files with some minor changes. Signed-off-by: Jay Zhou --- config/common_base | 20 ++ drivers/crypto/virtio/virtio_logs.h | 47

[dpdk-dev] [PATCH v2 7/7] MAINTAINERS: add myself as virtio crypto PMD maintainer

2018-02-24 Thread Jay Zhou
Signed-off-by: Jay Zhou --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4f1f33b..3efc8df 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -718,6 +718,12 @@ F: drivers/crypto/snow3g/ F: doc/guides/cryptodevs/snow3g.rst F: doc/guides

[dpdk-dev] [PATCH v2 4/7] crypto/virtio: add makefile

2018-02-24 Thread Jay Zhou
The virtio crypto PMD driver can be compiled now. Signed-off-by: Jay Zhou --- drivers/crypto/Makefile| 1 + drivers/crypto/virtio/Makefile | 31 ++ .../virtio/rte_pmd_virtio_crypto_version.map | 3 +++ mk/rte.app.mk

[dpdk-dev] [PATCH v2 0/7] crypto: add virtio poll mode driver

2018-02-24 Thread Jay Zhou
nstead of creating a copy of the file [Fan] - update doc/guides/cryptodevs for describing virtio crypto PMD [Fan] - update copyright - delete virtio legacy mode code since virtio-crypto conforms to virtio-1.0 - refine the function and variable names - fix errors and warnings reported by chec

[dpdk-dev] [PATCH v2 3/7] cryptodev/virtio: core code of crypto devices

2018-02-24 Thread Jay Zhou
The idea comes from QAT and virtio-net devices. Signed-off-by: Jay Zhou --- drivers/crypto/virtio/virtio_cryptodev.c | 1544 ++ drivers/crypto/virtio/virtio_cryptodev.h | 66 ++ drivers/crypto/virtio/virtio_rxtx.c | 533 +++ 3 files changed, 2143

  1   2   >