Commit 7a7dd511 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Saeed Mahameed

mlx5: fix psample_sample_packet link error

When PSAMPLE is a loadable module, built-in drivers cannot use it:

aarch64-linux-ld: drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.o: in function `mlx5e_tc_sample_skb':
sample.c:(.text+0xd68): undefined reference to `psample_sample_packet'

Add the same dependency here that is used for MLXSW
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent fc993be3
...@@ -115,6 +115,7 @@ config MLX5_TC_CT ...@@ -115,6 +115,7 @@ config MLX5_TC_CT
config MLX5_TC_SAMPLE config MLX5_TC_SAMPLE
bool "MLX5 TC sample offload support" bool "MLX5 TC sample offload support"
depends on MLX5_CLS_ACT depends on MLX5_CLS_ACT
depends on PSAMPLE=y || PSAMPLE=n || MLX5_CORE=m
default y default y
help help
Say Y here if you want to support offloading sample rules via tc Say Y here if you want to support offloading sample rules via tc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment