diff options
author | Ido Schimmel <idosch@mellanox.com> | 2019-01-08 17:48:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-08 22:53:54 +0100 |
commit | 143a8e038ac599ca73c6354c8af6a8fdeee9fa7d (patch) | |
tree | 025bec64f3228a81aade1a7265ea178dde326061 | |
parent | mlxsw: spectrum: Disable lag port TX before removing it (diff) | |
download | linux-143a8e038ac599ca73c6354c8af6a8fdeee9fa7d.tar.xz linux-143a8e038ac599ca73c6354c8af6a8fdeee9fa7d.zip |
mlxsw: spectrum: Add VXLAN dependency for spectrum
When VXLAN is a loadable module, MLXSW_SPECTRUM must not be built-in:
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c:2547: undefined
reference to `vxlan_fdb_find_uc'
Add Kconfig dependency to enforce usable configurations.
Fixes: 1231e04f5bba ("mlxsw: spectrum_switchdev: Add support for VxLAN encapsulation")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: kbuild test robot <lkp@intel.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/Kconfig b/drivers/net/ethernet/mellanox/mlxsw/Kconfig index 080ddd1942ec..b9a25aed5d11 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/Kconfig +++ b/drivers/net/ethernet/mellanox/mlxsw/Kconfig @@ -78,6 +78,7 @@ config MLXSW_SPECTRUM depends on IPV6 || IPV6=n depends on NET_IPGRE || NET_IPGRE=n depends on IPV6_GRE || IPV6_GRE=n + depends on VXLAN || VXLAN=n select GENERIC_ALLOCATOR select PARMAN select OBJAGG |