regex/mlx5: support combined rule file
authorOri Kam <orika@nvidia.com>
Thu, 7 Jan 2021 16:57:08 +0000 (18:57 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 19 Jan 2021 17:04:15 +0000 (18:04 +0100)
commitf324162e8e771958861875ecd015c5fbfd728ece
tree5f9cfa51717293a1a3d3a04c5671b1ae6c459b5f
parent7e8b42e89aaa9217472fc2a3aa37718391ae08a5
regex/mlx5: support combined rule file

The rof file holds programming instructions for
a given HW version.
In order to support future generation of HW it
was decided that the rof file will hold number
of rule configurations, and the driver will use
the one that matches the HW version.

In current code we force sync after each write block.
This has impact on performance.

The solution is to move the sync to the end of the
entire programming sequence.

Signed-off-by: Ori Kam <orika@nvidia.com>
drivers/regex/mlx5/mlx5_regex.c
drivers/regex/mlx5/mlx5_regex.h
drivers/regex/mlx5/mlx5_rxp.c
drivers/regex/mlx5/mlx5_rxp_csrs.h