From: Ori Kam Date: Mon, 20 Jul 2020 06:26:17 +0000 (+0000) Subject: regex/mlx5: add empty start/stop/close X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=aea75c5a6815ebc1dab9912f10ebedcafb98d668;p=dpdk.git regex/mlx5: add empty start/stop/close Add the start, stop and close functions. In current implementation they are empty functions and are only exists in order that when called from rte level, the function will return with success code. Signed-off-by: Ori Kam --- diff --git a/drivers/regex/mlx5/mlx5_regex.c b/drivers/regex/mlx5/mlx5_regex.c index 4cfd9d0eff..1ca5bfe9b0 100644 --- a/drivers/regex/mlx5/mlx5_regex.c +++ b/drivers/regex/mlx5/mlx5_regex.c @@ -26,8 +26,29 @@ const struct rte_regexdev_ops mlx5_regexdev_ops = { .dev_configure = mlx5_regex_configure, .dev_db_import = mlx5_regex_rules_db_import, .dev_qp_setup = mlx5_regex_qp_setup, + .dev_start = mlx5_regex_start, + .dev_stop = mlx5_regex_stop, + .dev_close = mlx5_regex_close, }; +int +mlx5_regex_start(struct rte_regexdev *dev __rte_unused) +{ + return 0; +} + +int +mlx5_regex_stop(struct rte_regexdev *dev __rte_unused) +{ + return 0; +} + +int +mlx5_regex_close(struct rte_regexdev *dev __rte_unused) +{ + return 0; +} + static struct ibv_device * mlx5_regex_get_ib_device_match(struct rte_pci_addr *addr) { diff --git a/drivers/regex/mlx5/mlx5_regex.h b/drivers/regex/mlx5/mlx5_regex.h index 217a1a4d9c..6098fb1d54 100644 --- a/drivers/regex/mlx5/mlx5_regex.h +++ b/drivers/regex/mlx5/mlx5_regex.h @@ -80,6 +80,11 @@ struct mlx5_regex_priv { struct mlx5_dbr_page_list dbrpgs; /* Door-bell pages. */ }; +/* mlx5_regex.c */ +int mlx5_regex_start(struct rte_regexdev *dev); +int mlx5_regex_stop(struct rte_regexdev *dev); +int mlx5_regex_close(struct rte_regexdev *dev); + /* mlx5_rxp.c */ int mlx5_regex_info_get(struct rte_regexdev *dev, struct rte_regexdev_info *info);