diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2014-04-01 11:27:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-01 16:25:51 -0400 |
commit | a66132f3eb514f42c49a3e8f57aab2ccd0360f06 (patch) | |
tree | 3ff54ad41d26def78043606175bb07b7a7631b59 /drivers/net/ethernet/mellanox/mlx4/Kconfig | |
parent | c5abe7c0a44ac2e8147543203de48b4aa0d4eaec (diff) | |
download | op-kernel-dev-a66132f3eb514f42c49a3e8f57aab2ccd0360f06.zip op-kernel-dev-a66132f3eb514f42c49a3e8f57aab2ccd0360f06.tar.gz |
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/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/Kconfig b/drivers/net/ethernet/mellanox/mlx4/Kconfig index 1a6e188..1486ce9 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 |