Skip to contentSkip to conversation

mlxsw: add psample dependency for spectrum

PATCH Applied Arnd Bergmann 4 participants 4 messages Feb 6, 2017 – Feb 7, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/net/ethernet/mellanox/mlxsw/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/mellanox/mlxsw/Kconfig +1 -0
index 76a7574c3c7d..ef23eaedc2ff 100644
@@ -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---
Signature · 1 line
2.9.0
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Arnd Bergmann
Sent: Monday, February 06, 2017 6:27 PM
To: Jiri Pirko <[email protected]>; Ido Schimmel <[email protected]>
Cc: Arnd Bergmann <[email protected]>; David S. Miller <[email protected]>; Vadim Pasternak <[email protected]>; Elad Raz <[email protected]>; Ivan Vecera <[email protected]>; [email protected]; [email protected]
Subject: [PATCH] [net-next] mlxsw: add psample dependency for spectrum

When PSAMPLE is a loadable module, spectrum must not be built-in:

Quoted 7 lines

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")
Quoted 20 lines

---
drivers/net/ethernet/mellanox/mlxsw/Kconfig | 1 +

1 file changed, 1 insertion(+)
drivers/net/ethernet/mellanox/mlxsw/Kconfig +0 -0
index 76a7574c3c7d..ef23eaedc2ff 100644
@@ -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

drivers/net/ethernet/mellanox/mlxsw/Kconfig +1 -0
+	depends on PSAMPLE || PSAMPLE=n
	select PARMAN
	default m
	---help---

--
2.9.0

Acked-by on v1 1/1
#2 lore raw
In reply to Arnd Bergmann
Quoted 9 lines · Mon, Feb 06, 2017 at 05:26:30PM CET, [email protected] wrote:

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")
maintainer Applied
#3 lore raw
In reply to Arnd Bergmann

From: Arnd Bergmann <[email protected]>
Date: Mon, 6 Feb 2017 17:26:30 +0100

Quoted 9 lines

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")

Applied.