|
Revision tags: v24.07-rc2, v24.07-rc1, v24.03, v24.03-rc4, v24.03-rc3, v24.03-rc2, v24.03-rc1, v23.11, v23.11-rc4, v23.11-rc3, v23.11-rc2, v23.11-rc1, v23.07, v23.07-rc4, v23.07-rc3, v23.07-rc2, v23.07-rc1, v23.03, v23.03-rc4, v23.03-rc3, v23.03-rc2, v23.03-rc1, v22.11, v22.11-rc4, v22.11-rc3, v22.11-rc2, v22.11-rc1 |
|
| #
b6aceada |
| 01-Sep-2022 |
Gerry Gribbon <ggribbon@nvidia.com> |
app/regex: add match mode option
Allows to specify match mode to be used.
Signed-off-by: Gerry Gribbon <ggribbon@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
|
| #
392ac62b |
| 01-Sep-2022 |
Gerry Gribbon <ggribbon@nvidia.com> |
app/regex: display response flags value
Allows application user to see response flags
Signed-off-by: Gerry Gribbon <ggribbon@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
|
|
Revision tags: v22.07, v22.07-rc4, v22.07-rc3 |
|
| #
a442ca2d |
| 05-Jul-2022 |
Raslan Darawsheh <rasland@nvidia.com> |
app/regex: fix mbuf size for multi-segment buffer
When allocating multi segmented buffers, and in case there is a remainder in total buf len, the actual job len might be more than expected job_len.
app/regex: fix mbuf size for multi-segment buffer
When allocating multi segmented buffers, and in case there is a remainder in total buf len, the actual job len might be more than expected job_len.
This adds additional space in the mbuf in the multi seg case, to allow the remaining memory to be stored in one segment.
Fixes: c1d1b94eec58 ("app/regex: fix number of matches") Cc: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
show more ...
|
|
Revision tags: v22.07-rc2, v22.07-rc1, v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1, v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2, v21.11-rc1, v21.08, v21.08-rc4, v21.08-rc3, v21.08-rc2, v21.08-rc1 |
|
| #
1afdf9ed |
| 24-May-2021 |
Thierry Herbelot <thierry.herbelot@6wind.com> |
app/regex: avoid division by zero
Check that nb_jobs is not zero before using it for a division.
Fixes: f5cffb7eb7fb6 ("app/regex: read data file once at startup") Cc: stable@dpdk.org
Signed-off-b
app/regex: avoid division by zero
Check that nb_jobs is not zero before using it for a division.
Fixes: f5cffb7eb7fb6 ("app/regex: read data file once at startup") Cc: stable@dpdk.org
Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com>
show more ...
|
| #
c1d1b94e |
| 09-Mar-2022 |
Gerry Gribbon <ggribbon@nvidia.com> |
app/regex: fix number of matches
Depending on number of jobs specified on command line, part of the data buffer may not get searched, resulting in incorrect number of matches being reported.
Additi
app/regex: fix number of matches
Depending on number of jobs specified on command line, part of the data buffer may not get searched, resulting in incorrect number of matches being reported.
Additional change to ensure the "All Matches" summary outputs the correct match start locations in the supplied data buffer.
Fixes: de06137cb295 ("app/regex: add RegEx test application") Cc: stable@dpdk.org
Signed-off-by: Gerry Gribbon <ggribbon@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
show more ...
|
| #
06c047b6 |
| 09-Feb-2022 |
Stephen Hemminger <stephen@networkplumber.org> |
remove unnecessary null checks
Functions like free, rte_free, and rte_mempool_free already handle NULL pointer so the checks here are not necessary.
Remove redundant NULL pointer checks before free
remove unnecessary null checks
Functions like free, rte_free, and rte_mempool_free already handle NULL pointer so the checks here are not necessary.
Remove redundant NULL pointer checks before free functions found by nullfree.cocci
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
|
Revision tags: v21.05, v21.05-rc4, v21.05-rc3, v21.05-rc2, v21.05-rc1 |
|
| #
e0512833 |
| 05-Apr-2021 |
Thomas Monjalon <thomas@monjalon.net> |
app/regex: fix usage text
The usage syntax help includes the program name which was fake. It is replaced with the real name from argv.
Fixes: de06137cb295 ("app/regex: add RegEx test application")
app/regex: fix usage text
The usage syntax help includes the program name which was fake. It is replaced with the real name from argv.
Fixes: de06137cb295 ("app/regex: add RegEx test application") Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Ori Kam <orika@nvidia.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Acked-by: David Marchand <david.marchand@redhat.com>
show more ...
|
| #
487cfc24 |
| 05-Apr-2021 |
Thomas Monjalon <thomas@monjalon.net> |
app: fix exit messages
Some applications were printing useless messages with rte_exit() after showing the help. Using exit() is enough in this case.
Some applications were using a redundant printf
app: fix exit messages
Some applications were printing useless messages with rte_exit() after showing the help. Using exit() is enough in this case.
Some applications were using a redundant printf or fprintf() before calling rte_exit(). The messages are unified in a single rte_exit().
Some rte_exit() calls were missing a line feed or returning a wrong code.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Wisam Jaddo <wisamm@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Acked-by: David Marchand <david.marchand@redhat.com>
show more ...
|
| #
cace2d7e |
| 07-Apr-2021 |
Suanming Mou <suanmingm@nvidia.com> |
app/test-regex: add scattered mbuf input
This commits adds the scattered mbuf input support.
Signed-off-by: Suanming Mou <suanmingm@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
|
|
Revision tags: v21.02, v21.02-rc4, v21.02-rc3, v21.02-rc2, v21.02-rc1 |
|
| #
e5e518ed |
| 10-Jan-2021 |
Ophir Munk <ophirmu@nvidia.com> |
app/regex: measure performance with precise clock
Performance measurement (elapsed time and Gbps) are based on Linux clock() API. The resolution is improved by replacing the clock() API with rte_rdt
app/regex: measure performance with precise clock
Performance measurement (elapsed time and Gbps) are based on Linux clock() API. The resolution is improved by replacing the clock() API with rte_rdtsc_precise() API.
Signed-off-by: Ophir Munk <ophirmu@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
show more ...
|
| #
6e3c6bd6 |
| 10-Jan-2021 |
Ophir Munk <ophirmu@nvidia.com> |
app/regex: measure performance per queue pair
Up to this commit measuring the parsing elapsed time and Giga bits per second performance was done on the aggregation of all QPs (per core). This commit
app/regex: measure performance per queue pair
Up to this commit measuring the parsing elapsed time and Giga bits per second performance was done on the aggregation of all QPs (per core). This commit separates the time measurements per individual QP.
Signed-off-by: Ophir Munk <ophirmu@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
show more ...
|
| #
6b99ba8d |
| 10-Jan-2021 |
Ophir Munk <ophirmu@nvidia.com> |
app/regex: support multiple cores
Up to this commit the regex application was running with multiple QPs on a single core. This commit adds the option to specify a number of cores on which multiple
app/regex: support multiple cores
Up to this commit the regex application was running with multiple QPs on a single core. This commit adds the option to specify a number of cores on which multiple QPs will run. A new parameter 'nb_lcores' was added to configure the number of cores: --nb_lcores <num of cores>. If not configured the number of cores is set to 1 by default. On application startup a few initial steps occur by the main core: the number of QPs and cores are parsed. The QPs are distributed as evenly as possible on the cores. The regex device and all QPs are initialized. The data file is read and saved in a buffer. Then for each core the application calls rte_eal_remote_launch() with the worker routine (run_regex) as its parameter.
Signed-off-by: Ophir Munk <ophirmu@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
show more ...
|
| #
f5cffb7e |
| 10-Jan-2021 |
Ophir Munk <ophirmu@nvidia.com> |
app/regex: read data file once at startup
Up to this commit the input data file was read from scratch for each QP, which is redundant. Starting from this commit the data file is read only once at st
app/regex: read data file once at startup
Up to this commit the input data file was read from scratch for each QP, which is redundant. Starting from this commit the data file is read only once at startup. Each QP will clone the data.
Signed-off-by: Ophir Munk <ophirmu@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
show more ...
|
| #
4545bd00 |
| 10-Jan-2021 |
Ophir Munk <ophirmu@nvidia.com> |
app/regex: support multiple queue pairs
Up to this commit the regex application used one QP which was assigned a number of jobs, each with a different segment of a file to parse. This commit adds s
app/regex: support multiple queue pairs
Up to this commit the regex application used one QP which was assigned a number of jobs, each with a different segment of a file to parse. This commit adds support for multiple QPs assignments. All QPs will be assigned the same number of jobs, with the same segments of file to parse. It will enable comparing functionality with different numbers of QPs. All queues are managed on one core with one thread. This commit focuses on changing routines API to support multi QPs, mainly, QP scalar variables are replaced by per-QP struct instance. The enqueue/dequeue operations are interleaved as follows: enqueue(QP #1) enqueue(QP #2) ... enqueue(QP #n) dequeue(QP #1) dequeue(QP #2) ... dequeue(QP #n)
A new parameter 'nb_qps' was added to configure the number of QPs: --nb_qps <num of qps>. If not configured, nb_qps is set to 1 by default.
Signed-off-by: Ophir Munk <ophirmu@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
show more ...
|
| #
2d1fb3f2 |
| 10-Jan-2021 |
Ophir Munk <ophirmu@nvidia.com> |
app/regex: move mempool creation to worker routine
Function rte_pktmbuf_pool_create() is moved from init_port() routine to run_regex() routine. Looking forward on multi core support - init_port() wi
app/regex: move mempool creation to worker routine
Function rte_pktmbuf_pool_create() is moved from init_port() routine to run_regex() routine. Looking forward on multi core support - init_port() will be called only once as part of application startup while mem pool creation should be called multiple times (per core).
Signed-off-by: Ophir Munk <ophirmu@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
show more ...
|
|
Revision tags: v20.11, v20.11-rc5, v20.11-rc4, v20.11-rc3, v20.11-rc2 |
|
| #
30cf1713 |
| 22-Oct-2020 |
Guy Kaneti <guyk@marvell.com> |
app/regex: add job context
Store mbuf pointer associated with that job.
Signed-off-by: Guy Kaneti <guyk@marvell.com> Acked-by: Ori Kam <orika@nvidia.com>
|
|
Revision tags: v20.11-rc1 |
|
| #
d96d0fa7 |
| 20-Oct-2020 |
Guy Kaneti <guyk@marvell.com> |
app/regex: configure queue according to capabilities
configure qp with OOS according to device capabilities returned from rte_regexdev_info_get.
Signed-off-by: Guy Kaneti <guyk@marvell.com> Acked-b
app/regex: configure queue according to capabilities
configure qp with OOS according to device capabilities returned from rte_regexdev_info_get.
Signed-off-by: Guy Kaneti <guyk@marvell.com> Acked-by: Ori Kam <orika@nvidia.com>
show more ...
|
| #
06ca0e4b |
| 18-Oct-2020 |
Ophir Munk <ophirmu@nvidia.com> |
app/regex: fix crash in options parsing
getopt_long() parses command-line arguments. One of its arguments 'longopts' is a pointer to the first element of an array of struct option. The last element
app/regex: fix crash in options parsing
getopt_long() parses command-line arguments. One of its arguments 'longopts' is a pointer to the first element of an array of struct option. The last element of the array has to be filled with zeros to mark the end of options. For example:
struct option longopts[] = { { "help", 0, 0, ARG_HELP}, .... /* End of options */ { 0, 0, 0, 0 } };
This commit adds the last element. Prior to this commit getopt_long() continued parsing beyond the longopts[] array which occasionally caused segmentation faults.
Fixes: de06137cb295 ("app/regex: add RegEx test application") Cc: stable@dpdk.org
Signed-off-by: Ophir Munk <ophirmu@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com> Acked-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
show more ...
|
|
Revision tags: v20.08, v20.08-rc4, v20.08-rc3 |
|
| #
de06137c |
| 29-Jul-2020 |
Yuval Avnery <yuvalav@mellanox.com> |
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 applicati
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>
show more ...
|