[PATCH v2] regexdev: add maximum number of mbuf segments field

2022-10-07 Thread Gerry Gribbon
Allows application to query maximum number of mbuf segments that can be chained together. Signed-off-by: Gerry Gribbon Acked-by: Ori Kam --- v2: * Moved max_num_mbuf_segs field in the sparse rte_regexdev_info struct to reuse an existing hole. * Renamed max_num_mbuf_segs to max_segs. drivers

[PATCH] regexdev: add maximum number of mbuf segments field

2022-09-01 Thread Gerry Gribbon
Allows application to query maximum number of mbuf segments that can be chained together. Signed-off-by: Gerry Gribbon Acked-by: Ori Kam --- drivers/regex/mlx5/mlx5_regex.h | 1 + drivers/regex/mlx5/mlx5_regex_fastpath.c | 43 drivers/regex/mlx5/mlx5_rxp.c

[PATCH] regexdev: add maximum number of mbuf segments field

2022-09-01 Thread Gerry Gribbon
Allows application to query maximum number of mbuf segments that can be chained together. Signed-off-by: Gerry Gribbon Acked-by: Ori Kam --- drivers/regex/mlx5/mlx5_regex.h | 1 + drivers/regex/mlx5/mlx5_regex_fastpath.c | 43 drivers/regex/mlx5/mlx5_rxp.c

[PATCH] regexdev: add match mode command line parameter

2022-09-01 Thread Gerry Gribbon
Allows application to specify match mode to be used. Signed-off-by: Gerry Gribbon Acked-by: Ori Kam --- app/test-regex/main.c| 38 ++-- doc/guides/tools/testregex.rst | 3 ++ drivers/regex/mlx5/mlx5_regex_fastpath.c | 8 +++-- 3 files changed

[PATCH] regex/mlx5: add support for combined rof file

2022-09-01 Thread Gerry Gribbon
Added support to allow parsing of a combined rof file to locate compatible binary rof data for the Bluefield hardware being run on. Signed-off-by: Gerry Gribbon Acked-by: Ori Kam --- drivers/regex/mlx5/mlx5_regex.h | 4 + drivers/regex/mlx5/mlx5_rxp.c | 148

[PATCH] regex/mlx5: add check for nb max matches

2022-09-01 Thread Gerry Gribbon
Added check so user gets error if they try to configure the nb_max_matches value when using rte_regexdev_configure(). Signed-off-by: Gerry Gribbon Acked-by: Ori Kam --- drivers/regex/mlx5/mlx5_rxp.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/regex/mlx5/mlx5_rxp.c b

[PATCH] regexdev: display response flags value

2022-09-01 Thread Gerry Gribbon
Allows application user to see response flags Signed-off-by: Gerry Gribbon Acked-by: Ori Kam --- app/test-regex/main.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test-regex/main.c b/app/test-regex/main.c index 351c36a879..94b767e380 100644 --- a/app/test

[RFC] regexdev: add maximum number of mbuf segments field

2022-07-26 Thread Gerry Gribbon
Allows application to query maximum number of mbuf segments that can be chained together. Signed-off-by: Gerry Gribbon --- drivers/regex/mlx5/mlx5_regex.h | 1 + drivers/regex/mlx5/mlx5_regex_fastpath.c | 43 drivers/regex/mlx5/mlx5_rxp.c| 1

[PATCH] regex/mlx5: utilize all available QPs

2023-02-20 Thread Gerry Gribbon
queue objects") Cc: sta...@dpdk.org Signed-off-by: Gerry Gribbon --- drivers/regex/mlx5/mlx5_regex.h | 2 +- drivers/regex/mlx5/mlx5_regex_fastpath.c | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/regex/mlx5/mlx5_regex.h b/drivers/regex/mlx5/ml

[PATCH] regex/mlx5: correct value written to doorbell db rec

2023-02-20 Thread Gerry Gribbon
We were writing a value that should represent the number of items to be processed by hardware. The value being written was off by 1 (N*4)+3; The value should be (N*4) + 4 simplified to (N+1)*4 Fixes: 5dfa003db53f ("common/mlx5: fix post doorbell barrier") Cc: sta...@dpdk.org Signed-off

[PATCH] app/test-regex: fix incorrect number of matches

2022-03-09 Thread Gerry Gribbon
er. Fixes: de06137cb295 ("app/regex: add RegEx test application") Cc: yuva...@mellanox.com Cc: sta...@dpdk.org Signed-off-by: Gerry Gribbon Acked-by: Ori Kam --- app/test-regex/main.c | 38 -- 1 file changed, 28 insertions(+), 10 deletions(-) diff --