xref: /dpdk/doc/guides/regexdevs/mlx5.rst (revision bc8e32473cc3978d763a1387eaa8244bcf75e77d)
1.. SPDX-License-Identifier: BSD-3-Clause
2   Copyright 2020 Mellanox Technologies, Ltd
3
4.. include:: <isonum.txt>
5
6MLX5 RegEx driver
7=================
8
9The MLX5 RegEx (Regular Expression) driver library
10(**librte_regex_mlx5**) provides support for **Mellanox BlueField 2**
11families of 25/50/100/200 Gb/s adapters.
12
13Design
14------
15
16This PMD is configuring the RegEx HW engine.
17For the PMD to work, the application must supply
18a precompiled rule file in rof2 format.
19
20The PMD uses libibverbs and libmlx5 to access the device firmware
21or directly the hardware components.
22There are different levels of objects and bypassing abilities
23to get the best performances:
24
25- Verbs is a complete high-level generic API
26- Direct Verbs is a device-specific API
27- DevX allows to access firmware objects
28
29Enabling librte_regex_mlx5 causes DPDK applications to be linked against
30libibverbs.
31
32Mellanox mlx5 pci device can be probed by number of different pci devices,
33for example net / vDPA / RegEx. To select the RegEx PMD ``class=regex`` should
34be specified as device parameter. The RegEx device can be probed and used with
35other Mellanox devices, by adding more options in the class.
36For example: ``class=net:regex`` will probe both the net PMD and the RegEx PMD.
37
38Supported NICs
39--------------
40
41* Mellanox\ |reg| BlueField 2 SmartNIC
42
43Prerequisites
44-------------
45
46- BlueField 2 running Mellanox supported kernel.
47- Enable the RegEx capabilities using system call from the BlueField 2.
48- Official support is not yet released.
49
50Run-time configuration
51~~~~~~~~~~~~~~~~~~~~~~
52
53- **ethtool** operations on related kernel interfaces also affect the PMD.
54