numam-dpdk/drivers/vdpa/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_vdpa_cthread.c vdpa/mlx5: prepare virtqueue resource creation 2022-06-21 11:18:16 +02:00
mlx5_vdpa_event.c vdpa/mlx5: fix leak on event thread creation 2022-07-08 11:15:32 +02:00
mlx5_vdpa_lm.c vdpa/mlx5: add virtq live migration log task 2022-06-21 11:18:15 +02:00
mlx5_vdpa_mem.c vdpa/mlx5: add VM memory registration task 2022-06-21 11:18:15 +02:00
mlx5_vdpa_steer.c vdpa/mlx5: add virtq sub-resources creation 2022-06-21 11:18:16 +02:00
mlx5_vdpa_utils.h vdpa/mlx5: introduce Mellanox vDPA driver 2020-02-05 09:51:21 +01:00
mlx5_vdpa_virtq.c vdpa/mlx5: use common interrupt management 2022-07-05 20:15:28 +02:00
mlx5_vdpa.c bus/pci: make driver-only headers private 2022-09-23 16:14:34 +02:00
mlx5_vdpa.h vdpa/mlx5: prepare virtqueue resource creation 2022-06-21 11:18:16 +02:00
version.map version: 22.11-rc0 2022-07-21 12:13:48 +02:00