numam-dpdk/drivers/compress
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
..
isal bus/vdev: make driver-only headers private 2022-09-23 16:14:34 +02:00
mlx5 common/mlx5: fix disabling build 2022-10-30 15:55:10 +01:00
octeontx bus/pci: make driver-only headers private 2022-09-23 16:14:34 +02:00
qat bus/pci: make driver-only headers private 2022-09-23 16:14:34 +02:00
zlib dev: hide driver object 2022-09-23 16:14:34 +02:00
meson.build drivers: clean up build lists 2021-04-21 12:37:55 +02:00