aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/Kconfig
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2014-04-01 11:27:13 +0300
committerDavid S. Miller <davem@davemloft.net>2014-04-01 16:25:51 -0400
commita66132f3eb514f42c49a3e8f57aab2ccd0360f06 (patch)
tree3ff54ad41d26def78043606175bb07b7a7631b59 /drivers/net/ethernet/mellanox/mlx4/Kconfig
parentbe2net: fix build dependency on VxLAN (diff)
downloadlinux-dev-a66132f3eb514f42c49a3e8f57aab2ccd0360f06.tar.xz
linux-dev-a66132f3eb514f42c49a3e8f57aab2ccd0360f06.zip
net/mlx4: Set proper build dependancy with vxlan
Make sure that vxlan_get_rx_port() is present in the kernel build in a manner consistent with mlx4, else mlx4 can be made built-in where vxlan a module and the phase of the build linking fails. Add CONFIG_MLX4_EN_VXLAN for that. Also, #ifdef the advertizement and implementation of the mlx4 vxlan ndo calls and related code under this config directive. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/Kconfig')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/Kconfig b/drivers/net/ethernet/mellanox/mlx4/Kconfig
index 1a6e1887a171..1486ce902a56 100644
--- a/drivers/net/ethernet/mellanox/mlx4/Kconfig
+++ b/drivers/net/ethernet/mellanox/mlx4/Kconfig
@@ -23,6 +23,13 @@ config MLX4_EN_DCB
If unsure, set to Y
+config MLX4_EN_VXLAN
+ bool "VXLAN offloads Support"
+ default y
+ depends on MLX4_EN && VXLAN && !(MLX4_EN=y && VXLAN=m)
+ ---help---
+ Say Y here if you want to use VXLAN offloads in the driver.
+
config MLX4_CORE
tristate
depends on PCI