* [PATCH net-next] eth: mlx5: remove Kconfig co-dependency with VXLAN
@ 2025-08-27 23:43 Jakub Kicinski
2025-08-28 1:32 ` Saeed Mahameed
2025-08-29 0:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Jakub Kicinski @ 2025-08-27 23:43 UTC (permalink / raw)
To: davem
Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
saeedm, leon, tariqt, mbloch
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.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: saeedm@nvidia.com
CC: leon@kernel.org
CC: tariqt@nvidia.com
CC: mbloch@nvidia.com
---
drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 -
drivers/net/ethernet/mellanox/mlx5/core/Makefile | 4 +++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
index 6ec7d6e0181d..8ef2ac2060ba 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
+++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
@@ -8,7 +8,6 @@ config MLX5_CORE
depends on PCI
select AUXILIARY_BUS
select NET_DEVLINK
- depends on VXLAN || !VXLAN
depends on MLXFW || !MLXFW
depends on PTP_1588_CLOCK_OPTIONAL
depends on PCI_HYPERV_INTERFACE || !PCI_HYPERV_INTERFACE
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Makefile b/drivers/net/ethernet/mellanox/mlx5/core/Makefile
index a253c73db9e5..206223ce63a8 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/Makefile
+++ b/drivers/net/ethernet/mellanox/mlx5/core/Makefile
@@ -85,7 +85,9 @@ mlx5_core-$(CONFIG_MLX5_BRIDGE) += esw/bridge.o esw/bridge_mcast.o esw/bridge
mlx5_core-$(CONFIG_HWMON) += hwmon.o
mlx5_core-$(CONFIG_MLX5_MPFS) += lib/mpfs.o
-mlx5_core-$(CONFIG_VXLAN) += lib/vxlan.o
+ifneq ($(CONFIG_VXLAN),)
+ mlx5_core-y += lib/vxlan.o
+endif
mlx5_core-$(CONFIG_PTP_1588_CLOCK) += lib/clock.o
mlx5_core-$(CONFIG_PCI_HYPERV_INTERFACE) += lib/hv.o lib/hv_vhca.o
--
2.51.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] eth: mlx5: remove Kconfig co-dependency with VXLAN
2025-08-27 23:43 [PATCH net-next] eth: mlx5: remove Kconfig co-dependency with VXLAN Jakub Kicinski
@ 2025-08-28 1:32 ` Saeed Mahameed
2025-08-29 0:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Saeed Mahameed @ 2025-08-28 1:32 UTC (permalink / raw)
To: Jakub Kicinski
Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms, saeedm,
leon, tariqt, mbloch
On 27 Aug 16:43, Jakub Kicinski wrote:
>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.
>
>Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Nice improvement, Thanks!
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] eth: mlx5: remove Kconfig co-dependency with VXLAN
2025-08-27 23:43 [PATCH net-next] eth: mlx5: remove Kconfig co-dependency with VXLAN Jakub Kicinski
2025-08-28 1:32 ` Saeed Mahameed
@ 2025-08-29 0:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-08-29 0:00 UTC (permalink / raw)
To: Jakub Kicinski
Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms, saeedm,
leon, tariqt, mbloch
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 27 Aug 2025 16:43:19 -0700 you wrote:
> 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.
>
> [...]
Here is the summary with links:
- [net-next] eth: mlx5: remove Kconfig co-dependency with VXLAN
https://git.kernel.org/netdev/net-next/c/15d157c3ad01
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-08-29 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-27 23:43 [PATCH net-next] eth: mlx5: remove Kconfig co-dependency with VXLAN Jakub Kicinski
2025-08-28 1:32 ` Saeed Mahameed
2025-08-29 0:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).