app/regex: add RegEx test application
authorYuval Avnery <yuvalav@mellanox.com>
Wed, 29 Jul 2020 18:09:57 +0000 (18:09 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 30 Jul 2020 07:13:52 +0000 (09:13 +0200)
commitde06137cb295ee4c8db579635e7adf9226dda2eb
treed5ca3f27e6e841eb088f80ee639dbd70fd773ea9
parent76e821a303fd566c937f8e60c03a4f5803cc00ed
app/regex: add RegEx test application

Following the new RegEx class.
There is a need to create a dedicated test application in order to
validate this class and PMD.

Unlike net device this application loads data from a file.

This commit introduces the new RegEx test app.

The basic app flow:
1. Configure the RegEx device to use one queue, and set the rule
   database, using precompiled file.
2. Allocate mbufs based on the requested number of jobs, each job will
i  get one mbuf.
3. Enqueue as much as possible jobs.
4. Dequeue jobs.
5. if the number of dequeue jobs < requested number of jobs job to step

Signed-off-by: Ori Kam <orika@mellanox.com>
Signed-off-by: Yuval Avnery <yuvalav@mellanox.com>
MAINTAINERS
app/Makefile
app/meson.build
app/test-regex/Makefile [new file with mode: 0644]
app/test-regex/main.c [new file with mode: 0644]
app/test-regex/meson.build [new file with mode: 0644]
doc/guides/tools/index.rst
doc/guides/tools/testregex.rst [new file with mode: 0644]