1 .. SPDX-License-Identifier: BSD-3-Clause
2 Copyright(c) 2019 Marvell International Ltd.
5 Marvell OCTEON TX2 Crypto Poll Mode Driver
6 ==========================================
8 The OCTEON TX2 crypto poll mode driver provides support for offloading
9 cryptographic operations to cryptographic accelerator units on the
10 **OCTEON TX2** :sup:`®` family of processors (CN9XXX).
12 More information about OCTEON TX2 SoCs may be obtained from `<https://www.marvell.com>`_
17 The OCTEON TX2 crypto PMD has support for:
22 The OCTEON TX2 crypto PMD may be compiled natively on an OCTEON TX2 platform or
23 cross-compiled on an x86 platform.
25 Enable OCTEON TX2 crypto PMD in your config file:
27 * ``CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_CRYPTO=y``
29 Refer to :doc:`../platform/octeontx2` for instructions to build your DPDK
34 The OCTEON TX2 crypto PMD uses services from the kernel mode OCTEON TX2
35 crypto PF driver in linux. This driver is included in the OCTEON TX SDK.
40 List the CPT PF devices available on your OCTEON TX2 platform:
42 .. code-block:: console
46 ``a0fd`` is the CPT PF device id. You should see output similar to:
48 .. code-block:: console
50 0002:10:00.0 Class 1080: Device 177d:a0fd
52 Set ``sriov_numvfs`` on the CPT PF device, to create a VF:
54 .. code-block:: console
56 echo 1 > /sys/bus/pci/drivers/octeontx2-cpt/0002:10:00.0/sriov_numvfs
58 Bind the CPT VF device to the vfio_pci driver:
60 .. code-block:: console
62 echo '177d a0fe' > /sys/bus/pci/drivers/vfio-pci/new_id
63 echo 0002:10:00.1 > /sys/bus/pci/devices/0002:10:00.1/driver/unbind
64 echo 0002:10:00.1 > /sys/bus/pci/drivers/vfio-pci/bind
66 Another way to bind the VF would be to use the ``dpdk-devbind.py`` script:
68 .. code-block:: console
71 ./usertools/dpdk-devbind.py -u 0002:10:00.1
72 ./usertools/dpdk-devbind.py -b vfio-pci 0002:10.00.1
76 Ensure that sufficient huge pages are available for your application::
78 echo 8 > /sys/kernel/mm/hugepages/hugepages-524288kB/nr_hugepages
80 Refer to :ref:`linux_gsg_hugepages` for more details.
85 .. _table_octeontx2_crypto_debug_options:
87 .. table:: OCTEON TX2 crypto PMD debug options
89 +---+------------+-------------------------------------------------------+
90 | # | Component | EAL log command |
91 +===+============+=======================================================+
92 | 1 | CPT | --log-level='pmd\.crypto\.octeontx2,8' |
93 +---+------------+-------------------------------------------------------+