net/mlx4: Set proper build dependancy with vxlan
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 1 Apr 2014 08:27:13 +0000 (11:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Apr 2014 20:25:51 +0000 (16:25 -0400)
commita66132f3eb514f42c49a3e8f57aab2ccd0360f06
tree3ff54ad41d26def78043606175bb07b7a7631b59
parentc5abe7c0a44ac2e8147543203de48b4aa0d4eaec
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>
drivers/net/ethernet/mellanox/mlx4/Kconfig
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h