Re: [PATCH] [net-next] mlxsw: add psample dependency for spectrum

From: Jiri Pirko
Date: Tue Feb 07 2017 - 04:47:11 EST


Mon, Feb 06, 2017 at 05:26:30PM CET, arnd@xxxxxxxx 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")
>Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Acked-by: Jiri Pirko <jiri@xxxxxxxxxxxx>