net/mlx5e: make VXLAN support conditional
authorArnd Bergmann <arnd@arndb.de>
Sun, 8 May 2016 11:55:25 +0000 (14:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2016 04:21:07 +0000 (00:21 -0400)
commit7dbb29172d415ccccad1166700d6be78dee9f2bc
tree8b8a9889a70a14ca07852753e5e60995a7ab483b
parent7fd7406d9c7e3c6f235aec224a811dc0fd29e049
net/mlx5e: make VXLAN support conditional

VXLAN can be disabled at compile-time or it can be a loadable
module while mlx5 is built-in, which leads to a link error:

drivers/net/built-in.o: In function `mlx5e_create_netdev':
ntb_netdev.c:(.text+0x106de4): undefined reference to `vxlan_get_rx_port'

This avoids the link error and makes the vxlan code optional,
like the other ethernet drivers do as well.

Link: https://patchwork.ozlabs.org/patch/589296/
Fixes: b3f63c3d5e2c ("net/mlx5e: Add netdev support for VXLAN tunneling")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/Kconfig
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/vxlan.h