numam-dpdk/drivers/regex/mlx5
Thomas Monjalon 3df380f617 common/mlx5: fix disabling build
If the dependency common/mlx5 is explicitly disabled,
but net/mlx5 is not explicitly disabled,
Meson will read the full recipe of net/mlx5
and will fail when accessing a variable from common/mlx5:
drivers/net/mlx5/meson.build:76:4: ERROR: Unknown variable "mlx5_config".

The solution is to stop parsing net/mlx5 if common/mlx5 is disabled.
The deps array must be defined before stopping, in order to automatically
disable the build of net/mlx5 and print the reason.

The same protection is applied to other mlx5 drivers,
so it will allow using the variable mlx5_config in future.

Fixes: 22681deead ("net/mlx5/hws: enable hardware steering")

Reported-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Acked-by: Alex Vesker <valex@nvidia.com>
2022-10-30 15:55:10 +01:00
..
meson.build common/mlx5: fix disabling build 2022-10-30 15:55:10 +01:00
mlx5_regex_control.c dev: hide driver object 2022-09-23 16:14:34 +02:00
mlx5_regex_devx.c regex/mlx5: remove engine start/stop commands 2021-11-03 23:14:51 +01:00
mlx5_regex_fastpath.c regex/mlx5: support stop on first match 2022-10-09 15:16:34 +02:00
mlx5_regex_utils.h common/mlx5: align log prefix across drivers 2021-04-07 09:43:32 +02:00
mlx5_regex.c bus/pci: make driver-only headers private 2022-09-23 16:14:34 +02:00
mlx5_regex.h regex/mlx5: support combined ROF file 2022-10-09 16:27:19 +02:00
mlx5_rxp.c regex/mlx5: forbid changing maximum match number 2022-10-09 16:33:32 +02:00
mlx5_rxp.h regex/mlx5: support combined ROF file 2022-10-09 16:27:19 +02:00
version.map version: 22.11-rc0 2022-07-21 12:13:48 +02:00