Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

eth: mlx5: remove Kconfig co-dependency with VXLAN

mlx5 has a Kconfig co-dependency on VXLAN, even tho it doesn't
call any VXLAN function (unlike mlxsw). Perhaps this dates back
to very old days when tunnel ports were fetched directly from
VXLAN.

Remove the dependency to allow MLX5=y + VXLAN=m kernel configs.
But still avoid compiling in the lib/vxlan code if VXLAN=n.

Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://patch.msgid.link/20250827234319.3504852-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+3 -2
-1
drivers/net/ethernet/mellanox/mlx5/core/Kconfig
··· 8 8 depends on PCI 9 9 select AUXILIARY_BUS 10 10 select NET_DEVLINK 11 - depends on VXLAN || !VXLAN 12 11 depends on MLXFW || !MLXFW 13 12 depends on PTP_1588_CLOCK_OPTIONAL 14 13 depends on PCI_HYPERV_INTERFACE || !PCI_HYPERV_INTERFACE
+3 -1
drivers/net/ethernet/mellanox/mlx5/core/Makefile
··· 85 85 86 86 mlx5_core-$(CONFIG_HWMON) += hwmon.o 87 87 mlx5_core-$(CONFIG_MLX5_MPFS) += lib/mpfs.o 88 - mlx5_core-$(CONFIG_VXLAN) += lib/vxlan.o 88 + ifneq ($(CONFIG_VXLAN),) 89 + mlx5_core-y += lib/vxlan.o 90 + endif 89 91 mlx5_core-$(CONFIG_PTP_1588_CLOCK) += lib/clock.o 90 92 mlx5_core-$(CONFIG_PCI_HYPERV_INTERFACE) += lib/hv.o lib/hv_vhca.o 91 93