diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-02-06 17:26:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-07 11:44:12 -0500 |
commit | 8d1fb01df8f64af14c833805dcbd05bf4582e028 (patch) | |
tree | dbf16a8882eb9d318420f16553160fb7e8770c55 /drivers/net/ethernet/mellanox/mlxsw/Kconfig | |
parent | bb4005bae3dab0dd21b239b1da193053151c07ba (diff) | |
download | linux-8d1fb01df8f64af14c833805dcbd05bf4582e028.tar.bz2 |
mlxsw: add psample dependency for spectrum
When PSAMPLE is a loadable module, spectrum must not be built-in:
drivers/net/built-in.o: In function `mlxsw_sp_rx_listener_sample_func':
spectrum.c:(.text+0xe357e): undefined reference to `psample_sample_packet'
This adds a Kconfig dependency to enforce usable configurations.
Fixes: 98d0f7b9acda ("mlxsw: spectrum: Add packet sample offloading support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Yotam Gigi <yotamg@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/Kconfig')
-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 76a7574c3c7d..ef23eaedc2ff 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/Kconfig +++ b/drivers/net/ethernet/mellanox/mlxsw/Kconfig @@ -73,6 +73,7 @@ config MLXSW_SWITCHX2 config MLXSW_SPECTRUM tristate "Mellanox Technologies Spectrum support" depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q + depends on PSAMPLE || PSAMPLE=n select PARMAN default m ---help--- |