]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2002a0f3f57cee4ac28a67c3a1806eaa0dbb270c
tree8b8a9889a70a14ca07852753e5e60995a7ab483b
parentdceeaf2bdfa4b17ded35cadc62f0935ed962318c
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: 4956da906c0d ("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