regex/mlx5: remove engine start/stop commands
Remove the engine start/stop DevX commands, as they have been deprecated and moved to FW. Signed-off-by: Ady Agbarih <adypodoman@gmail.com>
This commit is contained in:
parent
9fa82d287f
commit
7281f194fb
@ -47,16 +47,11 @@ int
|
||||
mlx5_regex_stop(struct rte_regexdev *dev __rte_unused)
|
||||
{
|
||||
struct mlx5_regex_priv *priv = dev->data->dev_private;
|
||||
uint32_t i;
|
||||
|
||||
mlx5_regex_clean_ctrl(dev);
|
||||
rte_free(priv->qps);
|
||||
priv->qps = NULL;
|
||||
|
||||
for (i = 0; i < priv->nb_engines; i++)
|
||||
/* Stop engine. */
|
||||
mlx5_devx_regex_database_stop(priv->cdev->ctx, i);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -76,8 +76,6 @@ int mlx5_regex_rules_db_import(struct rte_regexdev *dev,
|
||||
const char *rule_db, uint32_t rule_db_len);
|
||||
|
||||
/* mlx5_regex_devx.c */
|
||||
int mlx5_devx_regex_database_stop(void *ctx, uint8_t engine);
|
||||
int mlx5_devx_regex_database_resume(void *ctx, uint8_t engine);
|
||||
int mlx5_devx_regex_rules_program(void *ctx, uint8_t engine, uint32_t rof_mkey,
|
||||
uint32_t rof_size, uint64_t db_mkey_offset);
|
||||
|
||||
|
@ -12,48 +12,6 @@
|
||||
#include "mlx5_regex.h"
|
||||
#include "mlx5_regex_utils.h"
|
||||
|
||||
int
|
||||
mlx5_devx_regex_database_stop(void *ctx, uint8_t engine)
|
||||
{
|
||||
uint32_t out[MLX5_ST_SZ_DW(set_regexp_params_out)] = {0};
|
||||
uint32_t in[MLX5_ST_SZ_DW(set_regexp_params_in)] = {0};
|
||||
int ret;
|
||||
|
||||
MLX5_SET(set_regexp_params_in, in, opcode, MLX5_CMD_SET_REGEX_PARAMS);
|
||||
MLX5_SET(set_regexp_params_in, in, engine_id, engine);
|
||||
MLX5_SET(set_regexp_params_in, in, regexp_params.stop_engine, 1);
|
||||
MLX5_SET(set_regexp_params_in, in, field_select.stop_engine, 1);
|
||||
ret = mlx5_glue->devx_general_cmd(ctx, in, sizeof(in), out,
|
||||
sizeof(out));
|
||||
if (ret) {
|
||||
DRV_LOG(ERR, "Database stop failed %d", ret);
|
||||
rte_errno = errno;
|
||||
return -errno;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
mlx5_devx_regex_database_resume(void *ctx, uint8_t engine)
|
||||
{
|
||||
uint32_t out[MLX5_ST_SZ_DW(set_regexp_params_out)] = {0};
|
||||
uint32_t in[MLX5_ST_SZ_DW(set_regexp_params_in)] = {0};
|
||||
int ret;
|
||||
|
||||
MLX5_SET(set_regexp_params_in, in, opcode, MLX5_CMD_SET_REGEX_PARAMS);
|
||||
MLX5_SET(set_regexp_params_in, in, engine_id, engine);
|
||||
MLX5_SET(set_regexp_params_in, in, regexp_params.stop_engine, 0);
|
||||
MLX5_SET(set_regexp_params_in, in, field_select.stop_engine, 1);
|
||||
ret = mlx5_glue->devx_general_cmd(ctx, in, sizeof(in), out,
|
||||
sizeof(out));
|
||||
if (ret) {
|
||||
DRV_LOG(ERR, "Database start failed %d", ret);
|
||||
rte_errno = errno;
|
||||
return -errno;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
mlx5_devx_regex_rules_program(void *ctx, uint8_t engine, uint32_t rof_mkey,
|
||||
uint32_t rof_size, uint64_t rof_mkey_va)
|
||||
|
Loading…
Reference in New Issue
Block a user