doc: show how to include code in guides
[dpdk.git] / doc / guides / regexdevs / octeontx2.rst
1 ..  SPDX-License-Identifier: BSD-3-Clause
2     Copyright(c) 2020 Marvell International Ltd.
3
4 OCTEON TX2 REE Regexdev Driver
5 ==============================
6
7 The OCTEON TX2 REE PMD (**librte_regex_octeontx2**) provides poll mode
8 regexdev driver support for the inbuilt regex device found in the **Marvell OCTEON TX2**
9 SoC family.
10
11 More information about OCTEON TX2 SoC can be found at `Marvell Official Website
12 <https://www.marvell.com/embedded-processors/infrastructure-processors/>`_.
13
14 Features
15 --------
16
17 Features of the OCTEON TX2 REE PMD are:
18
19 - 36 queues
20 - Up to 254 matches for each regex operation
21
22 Prerequisites and Compilation procedure
23 ---------------------------------------
24
25    See :doc:`../platform/octeontx2` for setup information.
26
27 Device Setup
28 ------------
29
30 The OCTEON TX2 REE devices will need to be bound to a user-space IO driver
31 for use. The script ``dpdk-devbind.py`` script included with DPDK can be
32 used to view the state of the devices and to bind them to a suitable
33 DPDK-supported kernel driver. When querying the status of the devices,
34 they will appear under the category of "REGEX devices", i.e. the command
35 ``dpdk-devbind.py --status-dev regex`` can be used to see the state of
36 those devices alone.
37
38 Debugging Options
39 -----------------
40
41 .. _table_octeontx2_regex_debug_options:
42
43 .. table:: OCTEON TX2 regex device debug options
44
45    +---+------------+-------------------------------------------------------+
46    | # | Component  | EAL log command                                       |
47    +===+============+=======================================================+
48    | 1 | REE        | --log-level='pmd\.regex\.octeontx2,8'                 |
49    +---+------------+-------------------------------------------------------+