OSDN Git Service

mlx5: fix psample_sample_packet link error
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Nov 2021 11:10:32 +0000 (12:10 +0100)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 3 Dec 2021 00:53:07 +0000 (16:53 -0800)
commit7a7dd5114f53885419ef67c530e961d7ceaec15a
tree1c6b45624415389ba9bb1388fe45e182e32a4f0b
parentfc993be36f9ea7fc286d84d8471a1a20e871aad4
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: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/Kconfig