2018-09-11 20:42:34 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright 2013-2017 6WIND S.A.
|
|
|
|
|
|
|
|
PROJECT_NAME = DPDK
|
|
|
|
PROJECT_NUMBER = @VERSION@
|
2020-05-26 20:29:20 +00:00
|
|
|
USE_MDFILE_AS_MAINPAGE = @TOPDIR@/doc/api/doxy-api-index.md
|
2018-09-11 20:42:34 +00:00
|
|
|
INPUT = @TOPDIR@/doc/api/doxy-api-index.md \
|
2019-06-26 15:20:55 +00:00
|
|
|
@TOPDIR@/drivers/bus/vdev \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/drivers/crypto/scheduler \
|
|
|
|
@TOPDIR@/drivers/mempool/dpaa2 \
|
|
|
|
@TOPDIR@/drivers/net/bnxt \
|
|
|
|
@TOPDIR@/drivers/net/bonding \
|
|
|
|
@TOPDIR@/drivers/net/dpaa \
|
2019-01-11 12:24:30 +00:00
|
|
|
@TOPDIR@/drivers/net/dpaa2 \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/drivers/net/i40e \
|
2019-11-08 15:44:35 +00:00
|
|
|
@TOPDIR@/drivers/net/ice \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/drivers/net/ixgbe \
|
|
|
|
@TOPDIR@/drivers/net/softnic \
|
|
|
|
@TOPDIR@/drivers/raw/dpaa2_cmdif \
|
|
|
|
@TOPDIR@/drivers/raw/dpaa2_qdma \
|
2020-03-27 01:15:38 +00:00
|
|
|
@TOPDIR@/lib/librte_eal/include \
|
|
|
|
@TOPDIR@/lib/librte_eal/include/generic \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/lib/librte_acl \
|
|
|
|
@TOPDIR@/lib/librte_bbdev \
|
|
|
|
@TOPDIR@/lib/librte_bitratestats \
|
|
|
|
@TOPDIR@/lib/librte_bpf \
|
|
|
|
@TOPDIR@/lib/librte_cfgfile \
|
|
|
|
@TOPDIR@/lib/librte_cmdline \
|
|
|
|
@TOPDIR@/lib/librte_compressdev \
|
|
|
|
@TOPDIR@/lib/librte_cryptodev \
|
|
|
|
@TOPDIR@/lib/librte_distributor \
|
|
|
|
@TOPDIR@/lib/librte_efd \
|
|
|
|
@TOPDIR@/lib/librte_ethdev \
|
|
|
|
@TOPDIR@/lib/librte_eventdev \
|
2019-11-01 15:21:38 +00:00
|
|
|
@TOPDIR@/lib/librte_fib \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/lib/librte_flow_classify \
|
2020-04-11 14:14:00 +00:00
|
|
|
@TOPDIR@/lib/librte_graph \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/lib/librte_gro \
|
|
|
|
@TOPDIR@/lib/librte_gso \
|
|
|
|
@TOPDIR@/lib/librte_hash \
|
|
|
|
@TOPDIR@/lib/librte_ip_frag \
|
2019-10-10 16:52:14 +00:00
|
|
|
@TOPDIR@/lib/librte_ipsec \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/lib/librte_jobstats \
|
|
|
|
@TOPDIR@/lib/librte_kni \
|
|
|
|
@TOPDIR@/lib/librte_kvargs \
|
|
|
|
@TOPDIR@/lib/librte_latencystats \
|
|
|
|
@TOPDIR@/lib/librte_lpm \
|
|
|
|
@TOPDIR@/lib/librte_mbuf \
|
|
|
|
@TOPDIR@/lib/librte_member \
|
|
|
|
@TOPDIR@/lib/librte_mempool \
|
|
|
|
@TOPDIR@/lib/librte_meter \
|
|
|
|
@TOPDIR@/lib/librte_metrics \
|
2020-04-11 14:14:14 +00:00
|
|
|
@TOPDIR@/lib/librte_node \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/lib/librte_net \
|
|
|
|
@TOPDIR@/lib/librte_pci \
|
|
|
|
@TOPDIR@/lib/librte_pdump \
|
|
|
|
@TOPDIR@/lib/librte_pipeline \
|
|
|
|
@TOPDIR@/lib/librte_port \
|
|
|
|
@TOPDIR@/lib/librte_power \
|
|
|
|
@TOPDIR@/lib/librte_rawdev \
|
2019-05-01 03:54:16 +00:00
|
|
|
@TOPDIR@/lib/librte_rcu \
|
regexdev: introduce API
As RegEx usage become more used by DPDK applications, for example:
* Next Generation Firewalls (NGFW)
* Deep Packet and Flow Inspection (DPI)
* Intrusion Prevention Systems (IPS)
* DDoS Mitigation
* Network Monitoring
* Data Loss Prevention (DLP)
* Smart NICs
* Grammar based content processing
* URL, spam and adware filtering
* Advanced auditing and policing of user/application security policies
* Financial data mining - parsing of streamed financial feeds
* Application recognition.
* Dmemory introspection.
* Natural Language Processing (NLP)
* Sentiment Analysis.
* Big data database acceleration.
* Computational storage.
Number of PMD providers started to work on HW implementation,
along side with SW implementations.
This lib adds the support for those kind of devices.
The RegEx Device API is composed of two parts:
- The application-oriented RegEx API that includes functions to setup
a RegEx device (configure it, setup its queue pairs and start it),
update the rule database and so on.
- The driver-oriented RegEx API that exports a function allowing
a RegEx poll Mode Driver (PMD) to simultaneously register itself as
a RegEx device driver.
RegEx device components and definitions:
+-----------------+
| |
| o---------+ rte_regexdev_[en|de]queue_burst()
| PCRE based o------+ | |
| RegEx pattern | | | +--------+ |
| matching engine o------+--+--o | | +------+
| | | | | queue |<==o===>|Core 0|
| o----+ | | | pair 0 | | |
| | | | | +--------+ +------+
+-----------------+ | | |
^ | | | +--------+
| | | | | | +------+
| | +--+--o queue |<======>|Core 1|
Rule|Database | | | pair 1 | | |
+------+----------+ | | +--------+ +------+
| Group 0 | | |
| +-------------+ | | | +--------+ +------+
| | Rules 0..n | | | | | | |Core 2|
| +-------------+ | | +--o queue |<======>| |
| Group 1 | | | pair 2 | +------+
| +-------------+ | | +--------+
| | Rules 0..n | | |
| +-------------+ | | +--------+
| Group 2 | | | | +------+
| +-------------+ | | | queue |<======>|Core n|
| | Rules 0..n | | +-------o pair n | | |
| +-------------+ | +--------+ +------+
| Group n |
| +-------------+ |<-------rte_regexdev_rule_db_update()
| | | |<-------rte_regexdev_rule_db_compile_activate()
| | Rules 0..n | |<-------rte_regexdev_rule_db_import()
| +-------------+ |------->rte_regexdev_rule_db_export()
+-----------------+
RegEx: A regular expression is a concise and flexible means for matching
strings of text, such as particular characters, words, or patterns of
characters. A common abbreviation for this is â~@~\RegExâ~@~].
RegEx device: A hardware or software-based implementation of RegEx
device API for PCRE based pattern matching syntax and semantics.
PCRE RegEx syntax and semantics specification:
http://regexkit.sourceforge.net/Documentation/pcre/pcrepattern.html
RegEx queue pair: Each RegEx device should have one or more queue pair to
transmit a burst of pattern matching request and receive a burst of
receive the pattern matching response. The pattern matching
request/response embedded in *rte_regex_ops* structure.
Rule: A pattern matching rule expressed in PCRE RegEx syntax along with
Match ID and Group ID to identify the rule upon the match.
Rule database: The RegEx device accepts regular expressions and converts
them into a compiled rule database that can then be used to scan data.
Compilation allows the device to analyze the given pattern(s) and
pre-determine how to scan for these patterns in an optimized fashion that
would be far too expensive to compute at run-time. A rule database
contains a set of rules that compiled in device specific binary form.
Match ID or Rule ID: A unique identifier provided at the time of rule
creation for the application to identify the rule upon match.
Group ID: Group of rules can be grouped under one group ID to enable
rule isolation and effective pattern matching. A unique group identifier
provided at the time of rule creation for the application to identify
the rule upon match.
Scan: A pattern matching request through *enqueue* API.
It may possible that a given RegEx device may not support all the
features
of PCRE. The application may probe unsupported features through
struct rte_regexdev_info::pcre_unsup_flags
By default, all the functions of the RegEx Device API exported by a PMD
are lock-free functions which assume to not be invoked in parallel on
different logical cores to work on the same target object. For instance,
the dequeue function of a PMD cannot be invoked in parallel on two logical
cores to operates on same RegEx queue pair. Of course, this function
can be invoked in parallel by different logical core on different queue
pair. It is the responsibility of the upper level application to
enforce this rule.
In all functions of the RegEx API, the RegEx device is
designated by an integer >= 0 named the device identifier *dev_id*
At the RegEx driver level, RegEx devices are represented by a generic
data structure of type *rte_regexdev*.
RegEx devices are dynamically registered during the PCI/SoC device
probing phase performed at EAL initialization time.
When a RegEx device is being probed, a *rte_regexdev* structure and
a new device identifier are allocated for that device. Then, the
regexdev_init() function supplied by the RegEx driver matching the
probed device is invoked to properly initialize the device.
The role of the device init function consists of resetting the hardware
or software RegEx driver implementations.
If the device init operation is successful, the correspondence between
the device identifier assigned to the new device and its associated
*rte_regexdev* structure is effectively registered.
Otherwise, both the *rte_regexdev* structure and the device identifier
are freed.
The functions exported by the application RegEx API to setup a device
designated by its device identifier must be invoked in the following
order:
- rte_regexdev_configure()
- rte_regexdev_queue_pair_setup()
- rte_regexdev_start()
Then, the application can invoke, in any order, the functions
exported by the RegEx API to enqueue pattern matching job, dequeue
pattern matching response, get the stats, update the rule database,
get/set device attributes and so on
If the application wants to change the configuration (i.e. call
rte_regexdev_configure() or rte_regexdev_queue_pair_setup()), it must
call rte_regexdev_stop() first to stop the device and then do the
reconfiguration before calling rte_regexdev_start() again. The enqueue and
dequeue functions should not be invoked when the device is stopped.
Finally, an application can close a RegEx device by invoking the
rte_regexdev_close() function.
Each function of the application RegEx API invokes a specific function
of the PMD that controls the target device designated by its device
identifier.
For this purpose, all device-specific functions of a RegEx driver are
supplied through a set of pointers contained in a generic structure of
type *regexdev_ops*.
The address of the *regexdev_ops* structure is stored in the
*rte_regexdev* structure by the device init function of the RegEx driver,
which is invoked during the PCI/SoC device probing phase, as explained
earlier.
In other words, each function of the RegEx API simply retrieves the
*rte_regexdev* structure associated with the device identifier and
performs an indirect invocation of the corresponding driver function
supplied in the *regexdev_ops* structure of the *rte_regexdev*
structure.
For performance reasons, the address of the fast-path functions of the
RegEx driver is not contained in the *regexdev_ops* structure.
Instead, they are directly stored at the beginning of the *rte_regexdev*
structure to avoid an extra indirect memory access during their
invocation.
RTE RegEx device drivers do not use interrupts for enqueue or dequeue
operation. Instead, RegEx drivers export Poll-Mode enqueue and dequeue
functions to applications.
The *enqueue* operation submits a burst of RegEx pattern matching
request to the RegEx device and the *dequeue* operation gets a burst of
pattern matching response for the ones submitted through *enqueue*
operation.
Typical application utilisation of the RegEx device API will follow the
following programming flow.
- rte_regexdev_configure()
- rte_regexdev_queue_pair_setup()
- rte_regexdev_rule_db_update() Needs to invoke if precompiled rule
database not
provided in rte_regexdev_config::rule_db for rte_regexdev_configure()
and/or application needs to update rule database.
- rte_regexdev_rule_db_compile_activate() Needs to invoke if
rte_regexdev_rule_db_update function was used.
- Create or reuse exiting mempool for *rte_regex_ops* objects.
- rte_regexdev_start()
- rte_regexdev_enqueue_burst()
- rte_regexdev_dequeue_burst()
Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Signed-off-by: Ori Kam <orika@mellanox.com>
2020-07-06 17:36:46 +00:00
|
|
|
@TOPDIR@/lib/librte_regexdev \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/lib/librte_reorder \
|
2019-11-01 15:21:34 +00:00
|
|
|
@TOPDIR@/lib/librte_rib \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/lib/librte_ring \
|
|
|
|
@TOPDIR@/lib/librte_sched \
|
|
|
|
@TOPDIR@/lib/librte_security \
|
2019-04-03 23:20:13 +00:00
|
|
|
@TOPDIR@/lib/librte_stack \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/lib/librte_table \
|
2018-10-27 09:17:41 +00:00
|
|
|
@TOPDIR@/lib/librte_telemetry \
|
2018-09-11 20:42:34 +00:00
|
|
|
@TOPDIR@/lib/librte_timer \
|
|
|
|
@TOPDIR@/lib/librte_vhost
|
|
|
|
INPUT += @API_EXAMPLES@
|
|
|
|
FILE_PATTERNS = rte_*.h \
|
|
|
|
cmdline.h
|
|
|
|
PREDEFINED = __DOXYGEN__ \
|
|
|
|
VFIO_PRESENT \
|
|
|
|
__attribute__(x)=
|
|
|
|
|
|
|
|
OPTIMIZE_OUTPUT_FOR_C = YES
|
|
|
|
ENABLE_PREPROCESSING = YES
|
|
|
|
MACRO_EXPANSION = YES
|
|
|
|
EXPAND_ONLY_PREDEF = YES
|
|
|
|
EXTRACT_STATIC = YES
|
|
|
|
DISTRIBUTE_GROUP_DOC = YES
|
|
|
|
HIDE_UNDOC_MEMBERS = YES
|
|
|
|
HIDE_UNDOC_CLASSES = YES
|
|
|
|
HIDE_SCOPE_NAMES = YES
|
2018-10-18 16:09:16 +00:00
|
|
|
GENERATE_DEPRECATEDLIST = YES
|
2018-09-11 20:42:34 +00:00
|
|
|
VERBATIM_HEADERS = NO
|
|
|
|
ALPHABETICAL_INDEX = NO
|
|
|
|
|
|
|
|
HTML_TIMESTAMP = NO
|
|
|
|
HTML_DYNAMIC_SECTIONS = YES
|
2019-06-27 13:58:19 +00:00
|
|
|
SEARCHENGINE = YES
|
2018-09-11 20:42:34 +00:00
|
|
|
SORT_MEMBER_DOCS = NO
|
|
|
|
SOURCE_BROWSER = YES
|
|
|
|
|
|
|
|
EXAMPLE_PATH = @TOPDIR@/examples
|
|
|
|
EXAMPLE_PATTERNS = *.c
|
|
|
|
EXAMPLE_RECURSIVE = YES
|
|
|
|
|
|
|
|
OUTPUT_DIRECTORY = @OUTPUT@
|
|
|
|
STRIP_FROM_PATH = @STRIP_FROM_PATH@
|
|
|
|
GENERATE_HTML = YES
|
|
|
|
HTML_OUTPUT = @HTML_OUTPUT@
|
|
|
|
GENERATE_LATEX = NO
|
|
|
|
GENERATE_MAN = NO
|
2019-10-23 11:56:09 +00:00
|
|
|
|
|
|
|
HAVE_DOT = NO
|
2020-09-29 16:55:02 +00:00
|
|
|
|
|
|
|
WARN_AS_ERROR = @WARN_AS_ERROR@
|