]> git.proxmox.com Git - ceph.git/blame - ceph/src/seastar/dpdk/doc/guides/cryptodevs/null.rst
import 15.2.0 Octopus source
[ceph.git] / ceph / src / seastar / dpdk / doc / guides / cryptodevs / null.rst
CommitLineData
9f95a23c
TL
1.. SPDX-License-Identifier: BSD-3-Clause
2 Copyright(c) 2016 Intel Corporation.
7c673cae
FG
3
4Null Crypto Poll Mode Driver
5============================
6
7The Null Crypto PMD (**librte_pmd_null_crypto**) provides a crypto poll mode
8driver which provides a minimal implementation for a software crypto device. As
9a null device it does not modify the data in the mbuf on which the crypto
10operation is to operate and it only has support for a single cipher and
11authentication algorithm.
12
13When a burst of mbufs is submitted to a Null Crypto PMD for processing then
14each mbuf in the burst will be enqueued in an internal buffer for collection on
15a dequeue call as long as the mbuf has a valid rte_mbuf_offload operation with
16a valid rte_cryptodev_session or rte_crypto_xform chain of operations.
17
18Features
19--------
20
21Modes:
22
23* RTE_CRYPTO_XFORM_CIPHER ONLY
24* RTE_CRYPTO_XFORM_AUTH ONLY
25* RTE_CRYPTO_XFORM_CIPHER THEN RTE_CRYPTO_XFORM_AUTH
26* RTE_CRYPTO_XFORM_AUTH THEN RTE_CRYPTO_XFORM_CIPHER
27
28Cipher algorithms:
29
30* RTE_CRYPTO_CIPHER_NULL
31
32Authentication algorithms:
33
34* RTE_CRYPTO_AUTH_NULL
35
36Limitations
37-----------
38
39* Only in-place is currently supported (destination address is the same as
40 source address).
41
42Installation
43------------
44
45The Null Crypto PMD is enabled and built by default in both the Linux and
46FreeBSD builds.
47
48Initialization
49--------------
50
51To use the PMD in an application, user must:
52
11fdf7f2 53* Call rte_vdev_init("crypto_null") within the application.
7c673cae 54
11fdf7f2 55* Use --vdev="crypto_null" in the EAL options, which will call rte_vdev_init() internally.
7c673cae
FG
56
57The following parameters (all optional) can be provided in the previous two calls:
58
59* socket_id: Specify the socket where the memory for the device is going to be allocated
60 (by default, socket_id will be the socket where the core that is creating the PMD is running on).
61
62* max_nb_queue_pairs: Specify the maximum number of queue pairs in the device (8 by default).
63
64* max_nb_sessions: Specify the maximum number of sessions that can be created (2048 by default).
65
66Example:
67
68.. code-block:: console
69
9f95a23c
TL
70 ./l2fwd-crypto -l 1 -n 4 --vdev="crypto_null,socket_id=0,max_nb_sessions=128" \
71 -- -p 1 --cdev SW --chain CIPHER_ONLY --cipher_algo "null"