regex/mlx5: add support for combined rof file
PATCH 1/1 regex/mlx5: add support for combined rof file
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 <[email protected]>
Acked-by Ori Kam <[email protected]>
--- drivers/regex/mlx5/mlx5_regex.h | 4 + drivers/regex/mlx5/mlx5_rxp.c | 148 ++++++++++++++++++++++++++++++++ drivers/regex/mlx5/mlx5_rxp.h | 4 + 3 files changed, 156 insertions(+)
drivers/regex/mlx5/mlx5_regex.h +4 -0
@@ -74,6 +74,10 @@ int mlx5_regex_configure(struct rte_regexdev *dev, const struct rte_regexdev_config *cfg);int mlx5_regex_rules_db_import (struct rte_regexdev *dev,const char *rule_db,uint32_t rule_db_len); +int mlx5_regex_check_rof_version (uint32_t combined_rof_version); +int mlx5_regex_parse_rules_db (struct mlx5_regex_priv *priv, +const char **rule_db,uint32_t *rule_db_len); +int mlx5_regex_get_rxp_vers (uint32_t regexp_version,uint32_t *target_rxp_vers);/* mlx5_regex_devx.c */ int mlx5_devx_regex_rules_program(void *ctx, uint8_t engine, uint32_t rof_mkey,
drivers/regex/mlx5/mlx5_rxp.c +148 -0
166 lines not on this page · raw message
drivers/regex/mlx5/mlx5_rxp.h +4 -0
@@ -6,9 +6,13 @@#define RTE_PMD_MLX5_REGEX_RXP_H_ #define MLX5_RXP_BF2_IDENTIFIER 0x0 +#define MLX5_RXP_BF3_IDENTIFIER 0x1#define MLX5_RXP_MAX_JOB_LENGTH 16384#define MLX5_RXP_MAX_SUBSETS 4095#define MLX5_RXP_CSR_NUM_ENTRIES 31 +#define MLX5_RXP_BF2_ROF_VERSION_STRING 0x07055254 +#define MLX5_RXP_BF3_ROF_VERSION_STRING 0x00065254 +#define MLX5_RXP_BF4_ROF_VERSION_STRING 0x00075254#define MLX5_RXP_CTRL_TYPE_MASK 7#define MLX5_RXP_CTRL_TYPE_JOB_DESCRIPTOR 0
Signature · 1 line
2.25.1
Thomas Monjalon
Applied01/09/2022 10:24, Gerry Gribbon:
Quoted 6 lines
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 <[email protected]>Acked-by Ori Kam <[email protected]>
Applied, thanks.