common/mlx5: update PRM definitions for regex
authorAdy Agbarih <adypodoman@gmail.com>
Fri, 22 Oct 2021 15:45:51 +0000 (15:45 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 3 Nov 2021 22:14:19 +0000 (23:14 +0100)
commit2044860ebdfab90cd4fd605a684dd68ca1aba279
tree63f86754fa1fbc38ea5d8718f7e2a114116334f4
parent5b08ac4e4a8dbc95f52b871b62a97fda57fa477e
common/mlx5: update PRM definitions for regex

Update PRM hca capabilities definitions as follows:
regexp_version field added - specifies whether BF2 or BF3
regexp field removed
regexp_params field moved
regexp_log_crspace_size field removed
regexp_mmo added - specifies if using regex mmo wqe is supported

Allow regex only if both regexp_params and regexp_mmo are set,
instead of checking regexp_mmo only.

Check version through the new capability field regexp_version instead
of reading crspace register.

Signed-off-by: Ady Agbarih <adypodoman@gmail.com>
Acked-by: Ori Kam <orika@nvidia.com>
drivers/common/mlx5/mlx5_devx_cmds.c
drivers/common/mlx5/mlx5_devx_cmds.h
drivers/common/mlx5/mlx5_prm.h
drivers/regex/mlx5/mlx5_regex.c
drivers/regex/mlx5/mlx5_rxp_csrs.h